Class: Squib::Args::Import Private
- Inherits:
-
Object
- Object
- Squib::Args::Import
- Includes:
- ArgLoader
- Defined in:
- lib/squib/args/import.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
- #strip? ⇒ Boolean private
- #validate_explode(arg) ⇒ Object private
- #validate_strip(arg) ⇒ 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.
16 17 18 |
# File 'lib/squib/args/import.rb', line 16 def self. [] # none 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 13 14 |
# File 'lib/squib/args/import.rb', line 10 def self.parameters { strip: true, explode: 'Qty' } 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.
20 21 22 |
# File 'lib/squib/args/import.rb', line 20 def self.params_with_units [] # none of them end |
Instance Method Details
#strip? ⇒ 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.
33 34 35 |
# File 'lib/squib/args/import.rb', line 33 def strip? strip end |
#validate_explode(arg) ⇒ 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.
29 30 31 |
# File 'lib/squib/args/import.rb', line 29 def validate_explode(arg) arg end |
#validate_strip(arg) ⇒ 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.
24 25 26 27 |
# File 'lib/squib/args/import.rb', line 24 def validate_strip(arg) raise 'Strip must be true or false' unless arg == true || arg == false arg end |