Class: BuildTool::Commands::Alias

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/build-tool/commands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alternate, cmd) ⇒ Alias

Returns a new instance of Alias.



345
346
347
348
349
# File 'lib/build-tool/commands.rb', line 345

def initialize( alternate, cmd )
    super( cmd )
    @name = alternate
    @cmd = cmd
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



344
345
346
# File 'lib/build-tool/commands.rb', line 344

def name
  @name
end