Class: Cucumber::Core::Ast::Location::FilePath

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



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

def filename
  @filename
end

Instance Method Details

#same_as?(other) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/cucumber/core/ast/location.rb', line 42

def same_as?(other)
  filename == other.filename
end

#to_sObject



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

def to_s
  filename
end