linjunpop / riif

🏦 A DSL to generate QuickBooks IIF file.
MIT License
46 stars 30 forks source link

Add option to pass an argument to the Riif block #10

Closed ghiculescu closed 11 years ago

ghiculescu commented 11 years ago

If an argument is provided, uses yield(self) instead of instance_eval. This allows you to call other local methods without having to grab a copy of self before calling Riif#new.

See http://rubylearning.com/blog/2010/11/30/how-do-i-build-dsls-with-yield-and-instance_eval/ for more info.

coveralls commented 11 years ago

Coverage Status

Coverage decreased (-0%) when pulling 2edfe1b4208e504819141494e737148d3b9f0841 on ghiculescu:master into affede9c07a24f2d11f1cf7e7baf334918694b30 on linjunpop:master.

coveralls commented 11 years ago

Coverage Status

Coverage decreased (-0%) when pulling 77178fda4e0aa0b82bba75bf32bb667c50bd8e7c on ghiculescu:master into affede9c07a24f2d11f1cf7e7baf334918694b30 on linjunpop:master.

linjunpop commented 11 years ago

Great! Thanks @ghiculescu.