Class: ImproveYourCode::Context::SendContext
- Inherits:
-
CodeContext
- Object
- CodeContext
- ImproveYourCode::Context::SendContext
- Defined in:
- lib/improve_your_code/context/send_context.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from CodeContext
#children, #exp, #parent, #statement_counter
Instance Method Summary collapse
-
#initialize(exp, name) ⇒ SendContext
constructor
A new instance of SendContext.
Methods inherited from CodeContext
#append_child_context, #apply_current_visibility, #config_for, #each, #full_name, #instance_method?, #local_nodes, #matches?, #number_of_statements, #record_call_to, #record_use_of_self, #register_with_parent, #singleton_method?
Constructor Details
#initialize(exp, name) ⇒ SendContext
Returns a new instance of SendContext.
10 11 12 13 |
# File 'lib/improve_your_code/context/send_context.rb', line 10 def initialize(exp, name) @name = name super exp end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/improve_your_code/context/send_context.rb', line 8 def name @name end |