class Cucumber::Core::Ast::Location::Precise
Public Instance Methods
+(other)
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 90 def +(other) raise IncompatibleLocations if file != other.file Precise.new(file, lines + other.lines) end
hash()
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 78 def hash self.class.hash ^ to_s.hash end
include?(other_lines)
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 61 def include?(other_lines) lines.include?(other_lines) end
inspect()
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 95 def inspect "<#{self.class}: #{to_s}>" end
line()
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 65 def line lines.first end
match?(other)
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 69 def match?(other) return false unless other.file == file other.include?(lines) end
on_line(new_line)
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 86 def on_line(new_line) Location.new(file, new_line) end
to_s()
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 74 def to_s [file, lines.to_s].join(":") end
to_str()
click to toggle source
# File lib/cucumber/core/ast/location.rb, line 82 def to_str to_s end