Class: Squib::Args::Import Private

Inherits:
Object
  • Object
show all
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

Instance 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.



16
17
18
# File 'lib/squib/args/import.rb', line 16

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.



10
11
12
13
14
# File 'lib/squib/args/import.rb', line 10

def self.parameters
  { strip: true,
    explode: 'Qty'
  }
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.



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.

Returns:

  • (Boolean)


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