class TLAW::ResponseProcessor::Base

Public Class Methods

new(&block) click to toggle source
# File lib/tlaw/response_processor.rb, line 6
def initialize(&block)
  @block = block
end

Public Instance Methods

call(hash) click to toggle source
# File lib/tlaw/response_processor.rb, line 10
def call(hash)
  hash.tap(&@block)
end
to_proc() click to toggle source
# File lib/tlaw/response_processor.rb, line 14
def to_proc
  method(:call).to_proc
end