Method: Inch::API::Compare::CodeObjects#initialize
- Defined in:
- lib/inch/api/compare/code_objects.rb
#initialize(object1, object2) ⇒ CodeObjects
Returns a new instance of CodeObjects.
7 8 9 10 11 12 |
# File 'lib/inch/api/compare/code_objects.rb', line 7 def initialize(object1, object2) @before, @after = object1, object2 if @before.object_id == @after.object_id fail '@before and @after are identical ruby objects. this is bad.' end end |