Class: Sevgi::Sundries::Grid::Axis
- Defined in:
- lib/sevgi/sundries/grid.rb
Overview
Axis wrapper exposing grid line queries for one ruler direction.
Defined Under Namespace
Classes: Halve, Major, Minor, Query
Instance Attribute Summary collapse
-
#halve ⇒ Sevgi::Sundries::Grid::Axis::Halve
readonly
Returns the midpoint line query.
-
#major ⇒ Sevgi::Sundries::Grid::Axis::Major
readonly
Returns the major line query.
-
#minor ⇒ Sevgi::Sundries::Grid::Axis::Minor
readonly
Returns the minor line query.
Attributes inherited from Ruler
Attributes inherited from Interval
Instance Method Summary collapse
-
#initialize(this, other) ⇒ void
constructor
Creates an axis wrapper.
Methods inherited from Ruler
#expand, #margin, #ms, #sd, #sn, #su, #waste
Methods inherited from Interval
[], #[], #count, #d, #ds, #h, #hs, #nds, #nhs
Constructor Details
Instance Attribute Details
#halve ⇒ Sevgi::Sundries::Grid::Axis::Halve (readonly)
Returns the midpoint line query.
61 62 63 |
# File 'lib/sevgi/sundries/grid.rb', line 61 def halve @halve end |
#major ⇒ Sevgi::Sundries::Grid::Axis::Major (readonly)
Returns the major line query.
57 58 59 |
# File 'lib/sevgi/sundries/grid.rb', line 57 def major @major end |
#minor ⇒ Sevgi::Sundries::Grid::Axis::Minor (readonly)
Returns the minor line query.
65 66 67 |
# File 'lib/sevgi/sundries/grid.rb', line 65 def minor @minor end |