module MenuMaker::Path::Converter

Public Class Methods

convert(path) click to toggle source
# File lib/menu_maker/path.rb, line 32
def self.convert(path)
  type = path.class.name.to_s.split('::').last.to_s

  const_get("#{type}Converter").convert path
rescue NameError
  GenericConverter.convert path
end