Class: IPTables::Macros

Inherits:
Object
  • Object
show all
Defined in:
lib/iptables/expansions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#namedObject (readonly)

Returns the value of attribute named.



5
6
7
# File 'lib/iptables/expansions.rb', line 5

def named
  @named
end