Class: JsonRander::JNum
- Inherits:
-
Object
- Object
- JsonRander::JNum
- Defined in:
- lib/json_rander/json_num_builder.rb
Overview
json num: build from JNumBuilder
Instance Method Summary collapse
-
#initialize ⇒ JNum
constructor
A new instance of JNum.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ JNum
Returns a new instance of JNum.
148 149 150 |
# File 'lib/json_rander/json_num_builder.rb', line 148 def initialize @builder = JNumBuilder.instance end |
Instance Method Details
#to_s ⇒ Object
152 153 154 |
# File 'lib/json_rander/json_num_builder.rb', line 152 def to_s return @builder.get_num.to_s end |