Class: Hermeneutics::Count
- Inherits:
-
Object
- Object
- Hermeneutics::Count
- Defined in:
- lib/hermeneutics/types.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(num) ⇒ Count
constructor
A new instance of Count.
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
#value ⇒ Object
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 |