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.
50 51 52 53 |
# File 'lib/polynomials/point.rb', line 50 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.
40 41 42 |
# File 'lib/polynomials/point.rb', line 40 def kind_of_extremum @kind_of_extremum end |
Instance Method Details
#eql?(other) ⇒ Boolean
59 60 61 |
# File 'lib/polynomials/point.rb', line 59 def eql?(other) super && self.kind_of_extremum == other.kind_of_extremum end |
#to_s ⇒ Object
55 56 57 |
# File 'lib/polynomials/point.rb', line 55 def to_s super + kind_of_extremum.to_s end |