class ContentFS::Prefix

@api private

Public Class Methods

build(value) click to toggle source
# 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