Class: PrintR::Recursion
Instance Attribute Summary collapse
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
Instance Method Summary collapse
-
#initialize(object_type) ⇒ Recursion
constructor
A new instance of Recursion.
- #to_s ⇒ Object
Constructor Details
#initialize(object_type) ⇒ Recursion
Returns a new instance of Recursion.
5 6 7 |
# File 'lib/print_r/recursion.rb', line 5 def initialize(object_type) @object_type = object_type end |
Instance Attribute Details
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
3 4 5 |
# File 'lib/print_r/recursion.rb', line 3 def object_type @object_type end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/print_r/recursion.rb', line 9 def to_s "#{object_type} *RECURSION*" end |