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



50
51
52
# File 'lib/cucumber/core/ast/location.rb', line 50

def filename
  @filename
end

Instance Method Details

#same_as?(other) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#to_sObject



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

def to_s
  filename
end