class Constant

Public Class Methods

new(value) click to toggle source
# File lib/ruby-constants.rb, line 3
def initialize(value)
        @val = value
end

Public Instance Methods

string() click to toggle source
# File lib/ruby-constants.rb, line 11
def string
        return @val
end
type() click to toggle source
# File lib/ruby-constants.rb, line 15
def type
        return @val.class
end
value() click to toggle source
# File lib/ruby-constants.rb, line 7
def value
        return @val
end