Class: Hermeneutics::Count

Inherits:
BigDecimal
  • Object
show all
Defined in:
lib/hermeneutics/types.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(num) ⇒ Count

Returns a new instance of Count.



126
127
128
# File 'lib/hermeneutics/types.rb', line 126

def initialize num
  super num.to_i.to_s
end

Class Method Details

.parse(str) ⇒ Object



122
123
124
# File 'lib/hermeneutics/types.rb', line 122

def parse str
  new str
end

Instance Method Details

#to_s(*args) ⇒ Object Also known as: quote, encode



129
130
131
# File 'lib/hermeneutics/types.rb', line 129

def to_s *args
  to_i.to_s
end