Module: Pickle::Session::PickleParserMethods

Defined in:
lib/pickle/session.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/pickle/session.rb', line 4

def method_missing(method, *args, &block)
  if pickle_parser.respond_to?(method)
    pickle_parser.send(method, *args, &block)
  else
    super(method, *args, &block)
  end
end

Instance Method Details

#respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/pickle/session.rb', line 12

def respond_to?(method, include_private = false)
  super(method, include_private) || pickle_parser.respond_to?(method, include_private)
end