Class: Sevgi::Sundries::Grid::Axis Private
- Defined in:
- lib/sevgi/sundries/grid.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
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
private
Returns the midpoint line query.
-
#major ⇒ Sevgi::Sundries::Grid::Axis::Major
readonly
private
Returns the major line query.
-
#minor ⇒ Sevgi::Sundries::Grid::Axis::Minor
readonly
private
Returns the minor line query.
Attributes inherited from Ruler
Attributes inherited from Interval
Instance Method Summary collapse
-
#initialize(this, other) ⇒ void
constructor
private
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
#initialize(this, other) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates an axis wrapper.
72 73 74 75 76 77 78 |
# File 'lib/sevgi/sundries/grid.rb', line 72 def initialize(this, other) super(this) @major = Major.new(self, other) @halve = Halve.new(self, other) @minor = Minor.new(self, other) end |
Instance Attribute Details
#halve ⇒ Sevgi::Sundries::Grid::Axis::Halve (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the midpoint line query.
62 63 64 |
# File 'lib/sevgi/sundries/grid.rb', line 62 def halve @halve end |
#major ⇒ Sevgi::Sundries::Grid::Axis::Major (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the major line query.
58 59 60 |
# File 'lib/sevgi/sundries/grid.rb', line 58 def major @major end |
#minor ⇒ Sevgi::Sundries::Grid::Axis::Minor (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the minor line query.
66 67 68 |
# File 'lib/sevgi/sundries/grid.rb', line 66 def minor @minor end |