Class: Cucumber::CucumberExpressions::Coordinate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#xObject (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

#yObject (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

#zObject (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