Class: Sevgi::Geometry::Grid::Axis

Inherits:
Ruler show all
Defined in:
lib/sevgi/geometry/sundries/grid.rb

Direct Known Subclasses

X, Y

Defined Under Namespace

Classes: Halve, Major, Minor, Query

Instance Attribute Summary collapse

Attributes inherited from Ruler

#brut, #sub

Attributes inherited from Interval

#n, #u

Instance Method Summary collapse

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

#halveObject (readonly)

Returns the value of attribute halve.



27
28
29
# File 'lib/sevgi/geometry/sundries/grid.rb', line 27

def halve
  @halve
end

#majorObject (readonly)

Returns the value of attribute major.



27
28
29
# File 'lib/sevgi/geometry/sundries/grid.rb', line 27

def major
  @major
end

#minorObject (readonly)

Returns the value of attribute minor.



27
28
29
# File 'lib/sevgi/geometry/sundries/grid.rb', line 27

def minor
  @minor
end