Class: Squib::Args::ShowcaseSpecial Private

Inherits:
Object
  • Object
show all
Includes:
ArgLoader, DirValidator
Defined in:
lib/squib/args/showcase_special.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

Instance Method Summary collapse

Methods included from DirValidator

#ensure_dir_created

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.



23
24
25
# File 'lib/squib/args/showcase_special.rb', line 23

def self.expanding_parameters
  [] # none 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.



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

def self.parameters
  { scale: 0.85,
    offset: 1.1,
    reflect_offset: 15,
    reflect_percent: 0.25,
    reflect_strength: 0.2,
    face: :left,
  }
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.



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

def self.params_with_units
  [ :reflect_offset ]
end

Instance Method Details

#face_right?Boolean

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:

  • (Boolean)


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

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