Class: ImproveYourCode::Context::SendContext

Inherits:
CodeContext
  • Object
show all
Defined in:
lib/improve_your_code/context/send_context.rb

Instance Attribute Summary collapse

Attributes inherited from CodeContext

#children, #exp, #parent, #statement_counter

Instance Method Summary collapse

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

#nameObject (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