Class: Matest::SkipMe

Inherits:
Object
  • Object
show all
Defined in:
lib/matest/skip_me.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(the_caller = nil) ⇒ SkipMe

Returns a new instance of SkipMe.



4
5
6
7
8
9
10
# File 'lib/matest/skip_me.rb', line 4

def initialize(the_caller=nil)
  if the_caller
    @the_caller = the_caller
    file, lineno = the_caller.first.split(":")
    @source_location = [file, lineno.to_i]
  end
end

Instance Attribute Details

#source_locationObject (readonly)

Returns the value of attribute source_location.



3
4
5
# File 'lib/matest/skip_me.rb', line 3

def source_location
  @source_location
end

Instance Method Details

#to_procObject



12
13
14
# File 'lib/matest/skip_me.rb', line 12

def to_proc
  proc { SkipMe.new }
end