module Hippo_eyeDoc::Outputters::PrettyString::TransactionSet
Public Instance Methods
pretty_print(pp)
click to toggle source
# File lib/hippo_eyeDoc/outputters/pretty_string.rb, line 4 def pretty_print(pp) pp.text to_pretty_string end
to_pretty_string(indent_level = 0)
click to toggle source
# File lib/hippo_eyeDoc/outputters/pretty_string.rb, line 8 def to_pretty_string(indent_level = 0) output = '' values.sort.each do |sequence, component| component_definition = self.class.components[sequence] extra_indent = if component_definition.klass.ancestors.include?(Hippo::TransactionSets::Base) 2 elsif sequence == 0 0 else 2 end output += component.to_pretty_string(indent_level + extra_indent) end output end