Class: Swappy::Commands::Command

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/swappy/commands/command.rb

Direct Known Subclasses

List, Swap

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Command

Returns a new instance of Command.



10
11
12
13
# File 'lib/swappy/commands/command.rb', line 10

def initialize(options={})
  @options         = options
  @app_config_path = options[:app_config_path]
end

Instance Attribute Details

#app_config_pathObject (readonly)

Returns the value of attribute app_config_path.



8
9
10
# File 'lib/swappy/commands/command.rb', line 8

def app_config_path
  @app_config_path
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/swappy/commands/command.rb', line 8

def options
  @options
end