Class: AppMap::RSpec::BlockParseNode

Inherits:
ParseNode show all
Defined in:
lib/appmap/rspec/parse_node.rb

Overview

A Ruby block.

Instance Attribute Summary

Attributes inherited from ParseNodeStruct

#ancestors, #file_path, #node

Instance Method Summary collapse

Methods inherited from ParseNode

from_node

Instance Method Details

#first_lineObject



32
33
34
# File 'lib/appmap/rspec/parse_node.rb', line 32

def first_line
  node.location.first_line
end

#last_lineObject



36
37
38
# File 'lib/appmap/rspec/parse_node.rb', line 36

def last_line
  node.location.last_line
end

#to_sObject



28
29
30
# File 'lib/appmap/rspec/parse_node.rb', line 28

def to_s
  "RSpec block at #{file_path} #{first_line}:#{last_line}"
end