Class: ContentFS::Prefix Private
- Inherits:
-
Object
- Object
- ContentFS::Prefix
- Defined in:
- lib/contentfs/prefix.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .build(value) ⇒ Object private
Class Method Details
.build(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/contentfs/prefix.rb', line 7 def build(value) parts = value.to_s.split("__", 2) case parts.length when 2 parts when 1 [nil, parts[0]] end end |