Modules: OFX
21 22 23 24 25 26 27 28 29 30 31 32 33
# File 'lib/ofx_br.rb', line 21 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