Class: Cucumber::Core::Ast::Location::Wildcard

Inherits:
Struct
  • Object
show all
Defined in:
lib/cucumber/core/ast/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



47
48
49
# File 'lib/cucumber/core/ast/location.rb', line 47

def file
  @file
end

Instance Method Details

#include?(lines) ⇒ Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/cucumber/core/ast/location.rb', line 56

def include?(lines)
  true
end

#match?(other) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/cucumber/core/ast/location.rb', line 52

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

#to_sObject



48
49
50
# File 'lib/cucumber/core/ast/location.rb', line 48

def to_s
  file
end