Class: Matest::SkipMe
- Inherits:
-
Object
- Object
- Matest::SkipMe
- Defined in:
- lib/matest/skip_me.rb
Instance Attribute Summary collapse
-
#source_location ⇒ Object
readonly
Returns the value of attribute source_location.
Instance Method Summary collapse
-
#initialize(the_caller = nil) ⇒ SkipMe
constructor
A new instance of SkipMe.
- #to_proc ⇒ Object
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_location ⇒ Object (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 |