Class: Akainaa::CallNodeVisitor::MethodRange
- Inherits:
-
Data
- Object
- Data
- Akainaa::CallNodeVisitor::MethodRange
- Defined in:
- lib/akainaa/call_node_visitor.rb
Instance Attribute Summary collapse
-
#end_line ⇒ Object
readonly
Returns the value of attribute end_line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
Instance Method Summary collapse
Instance Attribute Details
#end_line ⇒ Object (readonly)
Returns the value of attribute 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
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
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 |