Class: Sevgi::Sundries::Grid::Axis

Inherits:
Ruler show all
Defined in:
lib/sevgi/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.



35
36
37
38
39
40
41
# File 'lib/sevgi/sundries/grid.rb', line 35

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.



33
34
35
# File 'lib/sevgi/sundries/grid.rb', line 33

def halve
  @halve
end

#majorObject (readonly)

Returns the value of attribute major.



33
34
35
# File 'lib/sevgi/sundries/grid.rb', line 33

def major
  @major
end

#minorObject (readonly)

Returns the value of attribute minor.



33
34
35
# File 'lib/sevgi/sundries/grid.rb', line 33

def minor
  @minor
end