Sha256: c6cd97eb98204b35fc52551b00ca67de4cfab603c1229022733916b9255837a7
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
require 'space_object/encode_error' module SpaceObject module StringEncodable def to_nested_space_key to_s end def to_space_key str = to_nested_space_key raise(EncodeError, "`#{str}' contains spaces and cannot be used as a key") if str[' '] str end def to_space_value to_s end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
space_object-0.1.4 | lib/space_object/string_encodable.rb |
space_object-0.1.3 | lib/space_object/string_encodable.rb |