class ActionView::Template::Types::Type

def self.[](type)

def self.[](type)
  if type.is_a?(self)
    type
  else
    new(type)
  end
end