Sha256: 865683aaf6f3786dfee893e76340c04a5c3c708802996562259f9e8b63440edc
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
class Report class Body class Rows attr_reader :body attr_accessor :method_id attr_accessor :args def initialize(*args) @body = args.shift @method_id = args.shift if args.last.is_a?(Array) @args = args.last end end def each(report, &blk) (args ? report.send(method_id, *args) : report.send(method_id)).each do |obj| blk.call obj end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
report-0.0.1 | lib/report/body/rows.rb |