Class: Object

Inherits:
BasicObject
Defined in:
lib/report_print/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#report_print(rp) ⇒ Object



12
13
14
15
16
17
# File 'lib/report_print/core_extensions.rb', line 12

def report_print(rp)
  rp.write_header(self)
  rp.multiline(after: rp.color("end", :bright_blue), after_empty: false) do
    rp.write_instance_variables(self)
  end
end

#report_print_cycle(rp) ⇒ Object



19
20
21
# File 'lib/report_print/core_extensions.rb', line 19

def report_print_cycle(rp)
  rp.write_header(self)
end