Class: Autorake::AddKeyVal

Inherits:
Add
  • Object
show all
Defined in:
lib/autorake/definition.rb

Direct Known Subclasses

AddIncdir, AddLibdir, AddMacro

Instance Method Summary collapse

Methods inherited from Add

#perform

Constructor Details

#initialize(key, val) ⇒ AddKeyVal

Returns a new instance of AddKeyVal.



163
164
165
166
167
168
169
170
171
172
# File 'lib/autorake/definition.rb', line 163

def initialize key, val
  x, y = key.to_s.split "/"
  if y then
    x = x.to_sym
  else
    x, y = nil, x
  end
  super x, y.to_sym
  @val = val
end