Class: Sumi::Sundries::Grid::Axis

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

Overview

Axis wrapper exposing grid line queries for one line direction.

Direct Known Subclasses

X, Y

Defined Under Namespace

Classes: Halve, Major, Minor, Query

Instance Attribute Summary collapse

Attributes inherited from Ruler

#brut, #finish, #start, #sub

Attributes inherited from Interval

#n, #u

Method Summary

Methods inherited from Ruler

#expand, #margins, #ms, #sd, #sn, #su, #waste

Methods inherited from Interval

[], #[], #count, #d, #ds, #h, #hs, #nds, #nhs

Instance Attribute Details

#halve ⇒ Sumi::Sundries::Grid::Axis::Halve (readonly)

Returns lines placed at the perpendicular ruler's halfway distances.



114
115
116
# File 'sundries/lib/sumi/sundries/grid.rb', line 114

def halve
  @halve
end

#major ⇒ Sumi::Sundries::Grid::Axis::Major (readonly)

Returns lines placed at the perpendicular ruler's major distances.



110
111
112
# File 'sundries/lib/sumi/sundries/grid.rb', line 110

def major
  @major
end

#minor ⇒ Sumi::Sundries::Grid::Axis::Minor (readonly)

Returns lines placed at the perpendicular ruler's minor distances.



118
119
120
# File 'sundries/lib/sumi/sundries/grid.rb', line 118

def minor
  @minor
end