class BSON::Symbol::Raw

def initialize(str_or_sym)

Other tags:
    See: http://bsonspec.org/#/specification -

Parameters:
  • str_or_sym (String | Symbol) -- The symbol represented by this
def initialize(str_or_sym)
  unless str_or_sym.is_a?(String) || str_or_sym.is_a?(Symbol)
    raise ArgumentError, "BSON::Symbol::Raw must be given a symbol or a string, not #{str_or_sym}"
  end
  @symbol = str_or_sym.to_sym
end