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.



158
159
160
161
162
163
164
165
166
167
# File 'lib/autorake/definition.rb', line 158

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