Class: Akainaa::CallNodeVisitor::MethodRange

Inherits:
Data
  • Object
show all
Defined in:
lib/akainaa/call_node_visitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_line ⇒ Object (readonly)

Returns the value of attribute end_line

Returns:

  • (Object) —

    the current value of end_line



7
8
9
# File 'lib/akainaa/call_node_visitor.rb', line 7

def end_line
  @end_line
end

#name ⇒ Object (readonly)

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



7
8
9
# File 'lib/akainaa/call_node_visitor.rb', line 7

def name
  @name
end

#start_line ⇒ Object (readonly)

Returns the value of attribute start_line

Returns:

  • (Object) —

    the current value of start_line



7
8
9
# File 'lib/akainaa/call_node_visitor.rb', line 7

def start_line
  @start_line
end

Instance Method Details

#method_row_range_as_idx ⇒ Object



12
13
14
# File 'lib/akainaa/call_node_visitor.rb', line 12

def method_row_range_as_idx
  (start_line - 1)..(end_line - 1)
end

#start_line_as_idx ⇒ Object



8
9
10
# File 'lib/akainaa/call_node_visitor.rb', line 8

def start_line_as_idx
  start_line - 1
end