Top Level Namespace

Defined Under Namespace

Modules: IIF, OFX, StripeIIFToQBO

Instance Method Summary collapse

Instance Method Details

#IIF(resource, &block) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/iif.rb', line 3

def IIF(resource, &block)
  parser = IIF::Parser.new(resource)
  
  if block_given?
    if block.arity == 1
      yield parser
    else
      parser.instance_eval(&block)
    end
  end

  parser
end