Module: RbTags::Formats::Extended::Instance

Included in:
Class, Method
Defined in:
lib/rbtags/formats/extended/instance.rb

Instance Method Summary collapse

Instance Method Details

#initialize(trace) ⇒ Object



4
5
6
# File 'lib/rbtags/formats/extended/instance.rb', line 4

def initialize(trace)
  @file = RbTags::File.new(*%r{\A(.*):(\d+)\z}.match(trace.find{ |line| line !~ %r{\A(.*):(\d+):in .*\z} })[1..2])
end

#reject?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/rbtags/formats/extended/instance.rb', line 8

def reject?
  @file.name.start_with? RbTags.path
end