Method: CommandMapper::Types::Str#initialize

Defined in:
lib/command_mapper/types/str.rb

#initialize(allow_empty: false, allow_blank: false) ⇒ Str

Initializes the value.

Parameters:

  • allow_empty (Boolean) (defaults to: false)

    Specifies whether the argument may accept empty values.

  • allow_blank (Boolean) (defaults to: false)

    Specifies whether the argument may accept blank values.



18
19
20
21
# File 'lib/command_mapper/types/str.rb', line 18

def initialize(allow_empty: false, allow_blank: false)
  @allow_empty = allow_empty
  @allow_blank = allow_blank
end