Class: Cucumber::Core::Test::Location::Wildcard

Inherits:
Struct
  • Object
show all
Defined in:
lib/cucumber/core/test/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



40
41
42
# File 'lib/cucumber/core/test/location.rb', line 40

def file
  @file
end

Instance Method Details

#include?(_lines) ⇒ Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/cucumber/core/test/location.rb', line 49

def include?(_lines)
  true
end

#match?(other) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/cucumber/core/test/location.rb', line 45

def match?(other)
  other.file == file
end

#to_sObject



41
42
43
# File 'lib/cucumber/core/test/location.rb', line 41

def to_s
  file
end