Modules: OFX
13 14 15 16 17 18 19 20 21 22 23 24 25
# File 'lib/ofx.rb', line 13 def OFX(resource, &block) parser = OFX::Parser::Base.new(resource).parser if block_given? if block.arity == 1 yield parser else parser.instance_eval(&block) end end parser end