Method: CSquare::Generator::Type#inspect

Defined in:
lib/csquare/generator/type.rb

#inspectObject



23
24
25
26
27
28
# File 'lib/csquare/generator/type.rb', line 23

def inspect
  obj_id = "0x#{(self.object_id << 1).to_s(16)}"
  min_part = " min=#{@min.inspect}" unless @min.nil?
  max_part = " max=#{@max.inspect}" unless @max.nil?
  "#<#{self.class.to_s}:#{obj_id} #{@id.inspect}=>#{@blueprint.id.inspect} ctype=#{@ctype.inspect} long_id=#{@long_id.inspect} keys=#{@keys.inspect}#{min_part.to_s}#{max_part.to_s}>"
end