Class: Blockspring::CLI::Command::Base
- Inherits:
-
Object
- Object
- Blockspring::CLI::Command::Base
- Includes:
- Helpers
- Defined in:
- lib/blockspring/cli/command/base.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = [], options = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Helpers
#display, #error, error_with_failure, error_with_failure=, #format_with_bang, #home_directory, #longest, #output_with_bang, #running_on_a_mac?, #running_on_windows?
Constructor Details
#initialize(args = [], options = {}) ⇒ Base
Returns a new instance of Base.
11 12 13 14 |
# File 'lib/blockspring/cli/command/base.rb', line 11 def initialize(args=[], ={}) @args = args @options = end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/blockspring/cli/command/base.rb', line 4 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/blockspring/cli/command/base.rb', line 5 def @options end |
Class Method Details
.namespace ⇒ Object
7 8 9 |
# File 'lib/blockspring/cli/command/base.rb', line 7 def self.namespace self.to_s.split("::").last.downcase end |