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

Defined in:
lib/helpers/flags.rb

Instance Method Summary collapse

Instance Method Details

#raise_invalid_symbol(symbol) ⇒ Object

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

#raise_invalid_value(value) ⇒ Object

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