Method: XMLService::I_CALL#format_inspect

Defined in:
lib/xmlservice.rb

#format_inspect(cat, top) ⇒ Object



1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
# File 'lib/xmlservice.rb', line 1613

def format_inspect(cat,top)
  if top.eql? "input"
    isInput = true
  else
    isInput = false
  end
  whatami = cat.class.name
  out = ""
  out2 = "@#{top} -> #{whatami}\n"
  out1 = ""
  if !cat.nil?
    alreadyseen = Array.new
    out2 << self.format_inspect_recursive(cat,".",alreadyseen,isInput)
    # shortcut methods
    shortcutmethods = cat.class.instance_methods
    alreadyseen.each do |name|
      shortcutmethods.each do |shortcut|
        if "#{name}".eql? "..@#{shortcut}"
          out1 << "obj." << top << ".#{shortcut}\n"
        end
      end
    end
  end
  out = out1 + out2
  out
end