Class: Aop::JointPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/aop/joint_point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method_name, action) ⇒ JointPoint

Returns a new instance of JointPoint.



3
4
5
6
# File 'lib/aop/joint_point.rb', line 3

def initialize(method_name, action)
  @method_name = method_name
  @action = action
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name.



12
13
14
# File 'lib/aop/joint_point.rb', line 12

def method_name
  @method_name
end

Instance Method Details

#call(*args) ⇒ Object



8
9
10
# File 'lib/aop/joint_point.rb', line 8

def call(*args)
  @action.call(*args)
end