Class: JSONFactory::State
- Inherits:
-
Object
- Object
- JSONFactory::State
- Defined in:
- lib/json_factory/state.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#io ⇒ Object
Returns the value of attribute io.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(io, type, count = 0) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(io, type, count = 0) ⇒ State
Returns a new instance of State.
7 8 9 10 11 |
# File 'lib/json_factory/state.rb', line 7 def initialize(io, type, count = 0) @io = io @type = type @count = count end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
5 6 7 |
# File 'lib/json_factory/state.rb', line 5 def count @count end |
#io ⇒ Object
Returns the value of attribute io.
5 6 7 |
# File 'lib/json_factory/state.rb', line 5 def io @io end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/json_factory/state.rb', line 5 def type @type end |