Class: Wod::Command::Base
- Inherits:
-
Object
- Object
- Wod::Command::Base
- Includes:
- Helpers
- Defined in:
- lib/wod/commands/base.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(args, wod = nil) ⇒ Base
constructor
A new instance of Base.
- #wod ⇒ Object
Methods included from Helpers
#ask, #display_formatted, #error, #home_directory, #last_page_file, #wod_directory
Constructor Details
#initialize(args, wod = nil) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/wod/commands/base.rb', line 9 def initialize(args, wod=nil) @args = args @wod = wod end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
7 8 9 |
# File 'lib/wod/commands/base.rb', line 7 def args @args end |
Instance Method Details
#wod ⇒ Object
14 15 16 |
# File 'lib/wod/commands/base.rb', line 14 def wod @wod ||= Wod::Command.run_internal('auth:client', args) end |