Class: Hermeneutics::Count

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(num) ⇒ Count

Returns a new instance of Count.



146
147
148
# File 'lib/hermeneutics/types.rb', line 146

def initialize num
  @value = num.to_i
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



145
146
147
# File 'lib/hermeneutics/types.rb', line 145

def value
  @value
end

Class Method Details

.parse(str) ⇒ Object



140
141
142
143
# File 'lib/hermeneutics/types.rb', line 140

def parse str
  i = Integer str
  new i
end