Class: ActiveMocker::ObjectInspect

Inherits:
Object
  • Object
show all
Defined in:
lib/active_mocker/mock/object_inspect.rb

Instance Method Summary collapse

Constructor Details

#initialize(class_name, attributes) ⇒ ObjectInspect

Returns a new instance of ObjectInspect.



4
5
6
7
8
# File 'lib/active_mocker/mock/object_inspect.rb', line 4

def initialize(class_name, attributes)
  @class_name = class_name
  @attributes = attributes
  @string     = create_inspections
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/active_mocker/mock/object_inspect.rb', line 10

def to_s
  @string
end

#to_strObject



14
15
16
# File 'lib/active_mocker/mock/object_inspect.rb', line 14

def to_str
  @string
end