Class: Adaline::Commands::Base
- Inherits:
-
Object
- Object
- Adaline::Commands::Base
- Defined in:
- lib/adaline/commands/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/adaline/commands/base.rb', line 8 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/adaline/commands/base.rb', line 6 def @options end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 |
# File 'lib/adaline/commands/base.rb', line 12 def call validate execute rescue StandardError => e puts e. end |