Class: Squib::Args::Coords Private

Inherits:
Object
  • Object
show all
Includes:
ArgLoader
Defined in:
lib/squib/args/coords.rb

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.

Class Method Summary collapse

Methods included from ArgLoader

#[], #convert_units, #defaultify, #expand_and_set_and_defaultify, #expandable_singleton?, #load!, #prep_layout_args, #validate

Class Method Details

.expanding_parametersObject

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.



24
25
26
# File 'lib/squib/args/coords.rb', line 24

def self.expanding_parameters
  parameters.keys # all of them
end

.parametersObject

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.



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/squib/args/coords.rb', line 10

def self.parameters
  { x: 0,    y: 0,
    x1: 100, y1: 100,
    x2: 150, y2: 150,
    x3: 100, y3: 150,
    cx1: 0 , cy1: 0,
    cx2: 0 , cy2: 0,
    inner_radius: 50, outer_radius: 100,
    radius: 100,
    n: 5,
    arc_start: 0, arc_end: 2 * Math::PI, arc_direction: :clockwise, arc_close: false,
 }
end

.params_with_unitsObject

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.



28
29
30
# File 'lib/squib/args/coords.rb', line 28

def self.params_with_units
  parameters.keys # all of them
end