Class: ObjectInspect
- Inherits:
-
Object
- Object
- ObjectInspect
- Defined in:
- lib/active_mock/object_inspect.rb
Instance Method Summary collapse
-
#initialize(class_name, attributes) ⇒ ObjectInspect
constructor
A new instance of ObjectInspect.
- #to_s ⇒ Object
- #to_str ⇒ Object
Constructor Details
#initialize(class_name, attributes) ⇒ ObjectInspect
3 4 5 6 7 |
# File 'lib/active_mock/object_inspect.rb', line 3 def initialize(class_name, attributes) @class_name = class_name @attributes = attributes @string = create_inspections end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/active_mock/object_inspect.rb', line 9 def to_s @string end |
#to_str ⇒ Object
13 14 15 |
# File 'lib/active_mock/object_inspect.rb', line 13 def to_str @string end |