Class: ActiveMocker::Mock::ObjectInspect
- Inherits:
-
Object
- Object
- ActiveMocker::Mock::ObjectInspect
- Defined in:
- lib/active_mocker/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
Returns a new instance of ObjectInspect.
5 6 7 8 9 |
# File 'lib/active_mocker/mock/object_inspect.rb', line 5 def initialize(class_name, attributes) @class_name = class_name @attributes = attributes @string = create_inspections end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/active_mocker/mock/object_inspect.rb', line 11 def to_s @string end |
#to_str ⇒ Object
15 16 17 |
# File 'lib/active_mocker/mock/object_inspect.rb', line 15 def to_str @string end |