Method: ContentFS::Prefix.build

Defined in:
lib/contentfs/prefix.rb

.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