Class: Polynomials::Extremum
Instance Attribute Summary collapse
-
#kind_of_extremum ⇒ Object
Returns the value of attribute kind_of_extremum.
Attributes inherited from Point
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
-
#initialize(*args, kind_of_extremum) ⇒ Extremum
constructor
A new instance of Extremum.
- #to_s ⇒ Object
Methods inherited from Point
Constructor Details
#initialize(*args, kind_of_extremum) ⇒ Extremum
Returns a new instance of Extremum.
51 52 53 54 |
# File 'lib/polynomials/point.rb', line 51 def initialize(*args,kind_of_extremum) @kind_of_extremum = kind_of_extremum super(*args) end |
Instance Attribute Details
#kind_of_extremum ⇒ Object
Returns the value of attribute kind_of_extremum.
41 42 43 |
# File 'lib/polynomials/point.rb', line 41 def kind_of_extremum @kind_of_extremum end |
Instance Method Details
#eql?(other) ⇒ Boolean
60 61 62 |
# File 'lib/polynomials/point.rb', line 60 def eql?(other) super && self.kind_of_extremum == other.kind_of_extremum end |
#to_s ⇒ Object
56 57 58 |
# File 'lib/polynomials/point.rb', line 56 def to_s super + kind_of_extremum.to_s end |