Class: Aop::JointPoint
- Inherits:
-
Object
- Object
- Aop::JointPoint
- Defined in:
- lib/aop/joint_point.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(method_name, action) ⇒ JointPoint
constructor
A new instance of JointPoint.
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_name ⇒ Object (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 |