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