Created
August 19, 2014 07:01
-
-
Save seanchas116/d75a3f3a7c49a1d82129 to your computer and use it in GitHub Desktop.
こんな書き方したい
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tbl = table do | |
:foo | :bar | :baz | |
1 | 2 | 3 | |
1 | 3 | 5 | |
end # => [{:foo=>1, :bar=>2, :baz=>3}, {:foo=>1, :bar=>3, :baz=>5}] | |
tbl2 = table :horizontal do | |
:foo | 1 | 1 | |
:bar | 2 | 3 | |
:baz | 3 | 5 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment