Class: Slappy::Listener::TextListener

Inherits:
Base
  • Object
show all
Defined in:
lib/slappy/listeners/text_listener.rb

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Methods included from Targettable

#target, #target?

Methods included from Debuggable

included

Methods included from Validatable

#valid?

Constructor Details

This class inherits a constructor from Slappy::Listener::Base

Instance Method Details

#patternObject



4
5
6
7
# File 'lib/slappy/listeners/text_listener.rb', line 4

def pattern
  return /#{@pattern}/ if @pattern.instance_of? String
  @pattern
end