Module: Esendex::Responses::Parser

Defined in:
lib/xednese/responses/parser.rb

Class Method Summary collapse

Class Method Details

.for(&block) ⇒ Object



4
5
6
7
8
# File 'lib/xednese/responses/parser.rb', line 4

def self.for(&block)
  Class.new.tap {|klass|
    klass.singleton_class.send(:define_method, :parse) {|s| block.call(s) }
  }
end