Class: IPTables::Macros
- Inherits:
-
Object
- Object
- IPTables::Macros
- Defined in:
- lib/iptables/expansions.rb
Instance Attribute Summary collapse
-
#named ⇒ Object
readonly
Returns the value of attribute named.
Instance Method Summary collapse
-
#initialize(expansion_hash) ⇒ Macros
constructor
A new instance of Macros.
Constructor Details
#initialize(expansion_hash) ⇒ Macros
Returns a new instance of Macros.
6 7 8 9 10 11 12 |
# File 'lib/iptables/expansions.rb', line 6 def initialize(expansion_hash) @expansion_hash = expansion_hash @named = {} @expansion_hash.each{ |name, info| @named[name] = Macro.new(name, info) } end |
Instance Attribute Details
#named ⇒ Object (readonly)
Returns the value of attribute named.
5 6 7 |
# File 'lib/iptables/expansions.rb', line 5 def named @named end |