Class: NoPatternNoAction

Inherits:
Object
  • Object
show all
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

PatternAction

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNoPatternNoAction

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

#commandObject

Returns the value of attribute command.



134
135
136
# File 'lib/datalackeylib.rb', line 134

def command
  @command
end

#exitObject

Returns the value of attribute exit.



134
135
136
# File 'lib/datalackeylib.rb', line 134

def exit
  @exit
end

#generatorsObject

Returns the value of attribute generators.



134
135
136
# File 'lib/datalackeylib.rb', line 134

def generators
  @generators
end

#identifierObject (readonly)

Returns the value of attribute identifier.



133
134
135
# File 'lib/datalackeylib.rb', line 133

def identifier
  @identifier
end

#messageObject

Returns the value of attribute message.



134
135
136
# File 'lib/datalackeylib.rb', line 134

def message
  @message
end

#statusObject

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