Skip to content

Instantly share code, notes, and snippets.

@seanchas116
Created August 19, 2014 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanchas116/d75a3f3a7c49a1d82129 to your computer and use it in GitHub Desktop.
Save seanchas116/d75a3f3a7c49a1d82129 to your computer and use it in GitHub Desktop.
こんな書き方したい
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