Module: DBWrapper::SimpleCommandDetector

Included in:
Listeners::Delete, Listeners::Insert, Listeners::Select, Listeners::Update
Defined in:
lib/db_wrapper/listeners/simple_command_detector.rb

Instance Method Summary collapse

Instance Method Details

#listening?(command) ⇒ Boolean



3
4
5
# File 'lib/db_wrapper/listeners/simple_command_detector.rb', line 3

def listening?(command)
  self.class.name.split('::').last.downcase == command.split(' ').first.downcase
end