Class: Hermeneutics::Count
- Inherits:
-
BigDecimal
- Object
- BigDecimal
- Hermeneutics::Count
- Defined in:
- lib/hermeneutics/types.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(num) ⇒ Count
constructor
A new instance of Count.
- #to_s(*args) ⇒ Object (also: #quote, #encode)
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 |