Class: Squib::Args::ShowcaseSpecial

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from DirValidator

#ensure_dir_created

Methods included from ArgLoader

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

Class Method Details

.expanding_parametersObject



27
28
29
# File 'lib/squib/args/showcase_special.rb', line 27

def self.expanding_parameters
  [] # none of them
end

.parametersObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/squib/args/showcase_special.rb', line 14

def self.parameters
  {
    scale: 0.85,
    trim: 0,
    trim_radius: 38,
    offset: 1.1,
    reflect_offset: 15,
    reflect_percent: 0.25,
    reflect_strength: 0.2,
    face: :left,
  }
end

.params_with_unitsObject



31
32
33
# File 'lib/squib/args/showcase_special.rb', line 31

def self.params_with_units
  [ :reflect_offset ]
end

Instance Method Details

#face_right?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/squib/args/showcase_special.rb', line 35

def face_right?
  @face.to_s.strip.downcase == 'right'
end