module Rubic::Inspector
Public Instance Methods
inspect()
click to toggle source
# File lib/rubic/inspector.rb, line 4 def inspect "(#{inspect_rec})" end
inspect_rec()
click to toggle source
# File lib/rubic/inspector.rb, line 8 def inspect_rec if empty? '' elsif last.is_a?(Array) [first.inspect, last.inspect_rec].join(' ').strip else "#{first.inspect} . #{last.inspect}" end end
to_s()
click to toggle source
# File lib/rubic/inspector.rb, line 18 def to_s "(#{to_s_rec})" end
to_s_rec()
click to toggle source
# File lib/rubic/inspector.rb, line 22 def to_s_rec if empty? '' elsif last.is_a?(Array) [first.to_s, last.to_s_rec].join(' ').strip else "#{first.to_s} . #{last.to_s}" end end