class Bundler::GemVersionPromoter
def level=(value)
-
value
(Symbol
) -- One of three Symbols: :major, :minor or :patch.
def level=(value) v = case value when String, Symbol value.to_sym end raise ArgumentError, "Unexpected level #{v}. Must be :major, :minor or :patch" unless [:major, :minor, :patch].include?(v) @level = v end