Class: Console::Command
Overview
Command base class
See MasterCommand for example.
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
232 233 234 |
# File 'lib/more/facets/command.rb', line 232 def arguments @arguments end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
233 234 235 |
# File 'lib/more/facets/command.rb', line 233 def @options end |
Class Method Details
.option_arity(arity_hash = nil) ⇒ Object
218 219 220 221 222 223 |
# File 'lib/more/facets/command.rb', line 218 def self.option_arity(arity_hash=nil) if arity_hash (@option_arity ||= {}).merge!(arity_hash) end @option_arity end |
Instance Method Details
#call ⇒ Object
237 238 239 |
# File 'lib/more/facets/command.rb', line 237 def call puts "Not implemented yet." end |