Class: Remind101::Command::Base
- Inherits:
-
Object
- Object
- Remind101::Command::Base
- Includes:
- Helpers
- Defined in:
- lib/remind101/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.
- #remind101 ⇒ Object
Constructor Details
#initialize(args = [], options = {}) ⇒ Base
Returns a new instance of Base.
14 15 16 17 |
# File 'lib/remind101/command/base.rb', line 14 def initialize(args=[], ={}) @args = args @options = end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
11 12 13 |
# File 'lib/remind101/command/base.rb', line 11 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/remind101/command/base.rb', line 12 def @options end |
Class Method Details
.namespace ⇒ Object
7 8 9 |
# File 'lib/remind101/command/base.rb', line 7 def self.namespace self.to_s.split("::").last.downcase end |