Class: Riptables::DSL::Root
Instance Method Summary collapse
-
#table(name, &block) ⇒ Object
Rules within a given table.
Methods inherited from Global
Instance Method Details
#table(name, &block) ⇒ Object
Rules within a given table
11 12 13 14 15 |
# File 'lib/riptables/dsl/root.rb', line 11 def table(name, &block) table = Riptables::Table.new(name) table.dsl.instance_eval(&block) Riptables.tables << table end |