Method: Subscene::Response.define_parser

Defined in:
lib/subscene/response.rb

.define_parser(&block) ⇒ Object

Store a Proc that receives the body and returns the parsed result.



10
11
12
# File 'lib/subscene/response.rb', line 10

def self.define_parser(&block)
  @parser = block
end