Class: Riptables::DSL::Root

Inherits:
Global
  • Object
show all
Defined in:
lib/riptables/dsl/root.rb

Instance Method Summary collapse

Methods inherited from Global

#role, #zone

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