Class: Spacialdb::Command::Base
- Inherits:
-
Object
- Object
- Spacialdb::Command::Base
- Includes:
- Helpers
- Defined in:
- lib/spacialdb/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.
- #spacialdb ⇒ Object
Methods included from Helpers
#ask, #confirm_command, #display, #echo_off, #echo_on, #error, #home_directory, #json_decode, #json_encode, #longest, #redisplay
Constructor Details
#initialize(args = [], options = {}) ⇒ Base
Returns a new instance of Base.
15 16 17 18 |
# File 'lib/spacialdb/command/base.rb', line 15 def initialize(args=[], ={}) @args = args @options = end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
12 13 14 |
# File 'lib/spacialdb/command/base.rb', line 12 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/spacialdb/command/base.rb', line 13 def @options end |
Class Method Details
.namespace ⇒ Object
8 9 10 |
# File 'lib/spacialdb/command/base.rb', line 8 def self.namespace self.to_s.split("::").last.downcase end |