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

Inherits:
Ruler show all
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.

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) ⇒ 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.

Parameters:



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

#halveSevgi::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

#majorSevgi::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

#minorSevgi::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