Class: XDry::BeforeImplementationStartIP

Inherits:
InsertionPoint show all
Defined in:
lib/xdry/patching/insertion_points.rb

Instance Attribute Summary

Attributes inherited from InsertionPoint

#ip, #method, #node

Instance Method Summary collapse

Methods inherited from InsertionPoint

#found?, #insert

Constructor Details

#initialize(oclass) ⇒ BeforeImplementationStartIP

Returns a new instance of BeforeImplementationStartIP.



78
79
80
81
# File 'lib/xdry/patching/insertion_points.rb', line 78

def initialize oclass
  @oclass = oclass
  super()
end

Instance Method Details

#find!Object



83
84
85
# File 'lib/xdry/patching/insertion_points.rb', line 83

def find!
  before @oclass.main_implementation.start_node
end