Class: Sevgi::Geometry::Grid::Axis
- Defined in:
- lib/sevgi/geometry/sundries/grid.rb
Defined Under Namespace
Classes: Halve, Major, Minor, Query
Instance Attribute Summary collapse
-
#halve ⇒ Object
readonly
Returns the value of attribute halve.
-
#major ⇒ Object
readonly
Returns the value of attribute major.
-
#minor ⇒ Object
readonly
Returns the value of attribute minor.
Attributes inherited from Ruler
Attributes inherited from Interval
Instance Method Summary collapse
-
#initialize(this, other) ⇒ Axis
constructor
A new instance of Axis.
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) ⇒ Axis
Returns a new instance of Axis.
29 30 31 32 33 34 35 |
# File 'lib/sevgi/geometry/sundries/grid.rb', line 29 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 ⇒ Object (readonly)
Returns the value of attribute halve.
27 28 29 |
# File 'lib/sevgi/geometry/sundries/grid.rb', line 27 def halve @halve end |
#major ⇒ Object (readonly)
Returns the value of attribute major.
27 28 29 |
# File 'lib/sevgi/geometry/sundries/grid.rb', line 27 def major @major end |
#minor ⇒ Object (readonly)
Returns the value of attribute minor.
27 28 29 |
# File 'lib/sevgi/geometry/sundries/grid.rb', line 27 def minor @minor end |