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.



152
153
154
# File 'lib/hermeneutics/types.rb', line 152

def initialize num
  @value = num.to_i
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



151
152
153
# File 'lib/hermeneutics/types.rb', line 151

def value
  @value
end

Class Method Details

.parse(str) ⇒ Object



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

def parse str
  i = Integer str
  new i
end