Class: Plotty::Sequence::Scalar
- Inherits:
-
Struct
- Object
- Struct
- Plotty::Sequence::Scalar
- Defined in:
- lib/plotty/graph.rb
Instance Attribute Summary collapse
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#scale ⇒ Object
Returns the value of attribute scale.
Instance Method Summary collapse
Instance Attribute Details
#max ⇒ Object
Returns the value of attribute max
34 35 36 |
# File 'lib/plotty/graph.rb', line 34 def max @max end |
#min ⇒ Object
Returns the value of attribute min
34 35 36 |
# File 'lib/plotty/graph.rb', line 34 def min @min end |
#scale ⇒ Object
Returns the value of attribute scale
34 35 36 |
# File 'lib/plotty/graph.rb', line 34 def scale @scale end |
Instance Method Details
#each ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/plotty/graph.rb', line 35 def each return to_enum unless block_given? i = min while i <= max yield i i *= scale end end |