Class: Riptables::Base
- Inherits:
-
Object
- Object
- Riptables::Base
- Defined in:
- lib/riptables/base.rb
Instance Attribute Summary collapse
-
#tables ⇒ Object
readonly
Returns the value of attribute tables.
Class Method Summary collapse
Instance Method Summary collapse
- #dsl ⇒ Object
-
#initialize(&block) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(&block) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/riptables/base.rb', line 9 def initialize(&block) @tables = [] dsl.instance_eval(&block) if block_given? end |
Instance Attribute Details
#tables ⇒ Object (readonly)
Returns the value of attribute tables.
7 8 9 |
# File 'lib/riptables/base.rb', line 7 def tables @tables end |