Module: Hexagonly::Point::Methods::ClassMethods
- Defined in:
- lib/hexagonly/point.rb
Instance Attribute Summary collapse
-
#x_coord_method_name ⇒ Object
Returns the value of attribute x_coord_method_name.
-
#y_coord_method_name ⇒ Object
Returns the value of attribute y_coord_method_name.
Instance Method Summary collapse
- #x_coord_method(x_method) ⇒ Object
- #x_y_coord_methods(x_method, y_method) ⇒ Object
- #y_coord_method(y_method) ⇒ Object
Instance Attribute Details
#x_coord_method_name ⇒ Object
Returns the value of attribute x_coord_method_name.
34 35 36 |
# File 'lib/hexagonly/point.rb', line 34 def x_coord_method_name @x_coord_method_name end |
#y_coord_method_name ⇒ Object
Returns the value of attribute y_coord_method_name.
34 35 36 |
# File 'lib/hexagonly/point.rb', line 34 def y_coord_method_name @y_coord_method_name end |
Instance Method Details
#x_coord_method(x_method) ⇒ Object
36 37 38 |
# File 'lib/hexagonly/point.rb', line 36 def x_coord_method(x_method) self.x_coord_method_name = x_method.to_sym end |
#x_y_coord_methods(x_method, y_method) ⇒ Object
44 45 46 47 |
# File 'lib/hexagonly/point.rb', line 44 def x_y_coord_methods(x_method, y_method) x_coord_method(x_method) y_coord_method(y_method) end |
#y_coord_method(y_method) ⇒ Object
40 41 42 |
# File 'lib/hexagonly/point.rb', line 40 def y_coord_method(y_method) self.y_coord_method_name = y_method.to_sym end |