Class: Squib::Args::SvgSpecial Private
- Inherits:
-
Object
- Object
- Squib::Args::SvgSpecial
- Includes:
- ArgLoader
- Defined in:
- lib/squib/args/svg_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
- .expanding_parameters ⇒ Object private
- .parameters ⇒ Object private
- .params_with_units ⇒ Object private
Instance Method Summary collapse
-
#render?(i) ⇒ Boolean
private
Only render if we have an ID specified, or we are forcing an ID.
- #validate_id(arg, _i) ⇒ Object private
Methods included from ArgLoader
#[], #convert_units, #defaultify, #expand_and_set_and_defaultify, #expandable_singleton?, #load!, #prep_layout_args, #validate
Class Method Details
.expanding_parameters ⇒ Object
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.
14 15 16 |
# File 'lib/squib/args/svg_special.rb', line 14 def self. parameters.keys # all of them end |
.parameters ⇒ Object
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 |
# File 'lib/squib/args/svg_special.rb', line 10 def self.parameters { data: nil, id: nil, force_id: false } end |
.params_with_units ⇒ Object
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.
18 19 20 |
# File 'lib/squib/args/svg_special.rb', line 18 def self.params_with_units [] end |
Instance Method Details
#render?(i) ⇒ 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.
Only render if we have an ID specified, or we are forcing an ID
29 30 31 32 |
# File 'lib/squib/args/svg_special.rb', line 29 def render?(i) return false if force_id[i] && id[i].to_s.empty? return true end |
#validate_id(arg, _i) ⇒ Object
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.
22 23 24 25 26 |
# File 'lib/squib/args/svg_special.rb', line 22 def validate_id(arg, _i) return nil if arg.nil? arg = '#' << arg unless arg.start_with? '#' arg end |