class Klam::Constant
Attributes
name[R]
Public Class Methods
new(name)
click to toggle source
# File lib/klam/constant.rb, line 5 def initialize(name) @name = name end
Public Instance Methods
==(other)
click to toggle source
# File lib/klam/constant.rb, line 13 def ==(other) other.kind_of?(Constant) && name == other.name end
hash()
click to toggle source
# File lib/klam/constant.rb, line 17 def hash name.hash end
to_s()
click to toggle source
# File lib/klam/constant.rb, line 9 def to_s name end