Module: SGC::Helper::FlagsValue::Pvt

Defined in:
lib/helpers/flags.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) raise_invalid_symbol(symbol)

Raises:

  • (ArgumentError)


68
69
70
# File 'lib/helpers/flags.rb', line 68

def raise_invalid_symbol(symbol)
    raise ArgumentError, "Invalid flags symbol: #{symbol.to_s}. Expect symbol in #{self.symbols.to_s}."
end

- (Object) raise_invalid_value(value)

Raises:

  • (ArgumentError)


73
74
75
# File 'lib/helpers/flags.rb', line 73

def raise_invalid_value(value)
    raise ArgumentError, "Invalid flags value: #{value.to_s}."
end