Class: NoPatternNoAction
- Inherits:
-
Object
- Object
- NoPatternNoAction
- Defined in:
- lib/datalackeylib.rb
Overview
Intended to be used internaly when there are no patterns to act on. Instead of using this, pass nil to DatalakceyIO.send
Direct Known Subclasses
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#exit ⇒ Object
Returns the value of attribute exit.
-
#generators ⇒ Object
Returns the value of attribute generators.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#message ⇒ Object
Returns the value of attribute message.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #best_match(_) ⇒ Object
-
#initialize ⇒ NoPatternNoAction
constructor
A new instance of NoPatternNoAction.
- #set_identifier(identifier) ⇒ Object
Constructor Details
#initialize ⇒ NoPatternNoAction
Returns a new instance of NoPatternNoAction.
136 137 138 139 140 141 142 |
# File 'lib/datalackeylib.rb', line 136 def initialize @exit = nil @command = nil @status = nil @message = nil @generators = [] end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
134 135 136 |
# File 'lib/datalackeylib.rb', line 134 def command @command end |
#exit ⇒ Object
Returns the value of attribute exit.
134 135 136 |
# File 'lib/datalackeylib.rb', line 134 def exit @exit end |
#generators ⇒ Object
Returns the value of attribute generators.
134 135 136 |
# File 'lib/datalackeylib.rb', line 134 def generators @generators end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
133 134 135 |
# File 'lib/datalackeylib.rb', line 133 def identifier @identifier end |
#message ⇒ Object
Returns the value of attribute message.
134 135 136 |
# File 'lib/datalackeylib.rb', line 134 def @message end |
#status ⇒ Object
Returns the value of attribute status.
134 135 136 |
# File 'lib/datalackeylib.rb', line 134 def status @status end |
Instance Method Details
#best_match(_) ⇒ Object
148 149 150 |
# File 'lib/datalackeylib.rb', line 148 def best_match(_) [ nil, [] ] end |
#set_identifier(identifier) ⇒ Object
144 145 146 |
# File 'lib/datalackeylib.rb', line 144 def set_identifier(identifier) @identifier = identifier end |