Class: Cucumber::CucumberExpressions::Coordinate
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
-
#z ⇒ Object
readonly
Returns the value of attribute z.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(x, y, z) ⇒ Coordinate
constructor
A new instance of Coordinate.
Constructor Details
#initialize(x, y, z) ⇒ Coordinate
Returns a new instance of Coordinate.
34 35 36 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb', line 34 def initialize(x, y, z) @x, @y, @z = x, y, z end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
32 33 34 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb', line 32 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
32 33 34 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb', line 32 def y @y end |
#z ⇒ Object (readonly)
Returns the value of attribute z.
32 33 34 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb', line 32 def z @z end |
Instance Method Details
#==(other) ⇒ Object
38 39 40 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb', line 38 def ==(other) other.is_a?(Coordinate) && other.x == x && other.y == y && other.z == z end |