Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/value_inspect/struct.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



4
5
6
# File 'lib/value_inspect/struct.rb', line 4

def inspect
  "%s.new(%s)" % [self.class.name, values.map(&:inspect).join(", ")]
end

#original_inspectObject



2
# File 'lib/value_inspect/struct.rb', line 2

alias_method :original_inspect, :inspect