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.
152 153 154 |
# File 'lib/hermeneutics/types.rb', line 152 def initialize num @value = num.to_i end |
Instance Attribute Details
#value ⇒ Object
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 |