Module: Hippo::Outputters::PrettyString::RepeatingComponent

Included in:
TransactionSets::RepeatingComponent
Defined in:
lib/hippo/outputters/pretty_string.rb

Instance Method Summary collapse

Instance Method Details

#pretty_print(pp) ⇒ Object



30
31
32
# File 'lib/hippo/outputters/pretty_string.rb', line 30

def pretty_print(pp)
  pp.text to_pretty_string
end

#to_pretty_string(indent_level = 0) ⇒ Object



34
35
36
# File 'lib/hippo/outputters/pretty_string.rb', line 34

def to_pretty_string(indent_level = 0)
  map{|component| component.to_pretty_string(indent_level)}.join
end