Class: Cucumber::Ast::Location
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(file, line) ⇒ Location
constructor
A new instance of Location.
- #on_line(new_line) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(file, line) ⇒ Location
Returns a new instance of Location.
7 8 9 10 |
# File 'lib/cucumber/ast/location.rb', line 7 def initialize(file, line) @file = file || raise(ArgumentError, "file is mandatory") @line = line || raise(ArgumentError, "line is mandatory") end |