class ActionView::Template::SimpleType
:nodoc:
is used without Action Dispatch.
SimpleType is mostly just a stub implementation for when Action View
:nodoc:
def ==(type)
def ==(type) @symbol == type.to_sym unless type.blank? end
def [](type)
def [](type) if type.is_a?(self) type else new(type) end end
def initialize(symbol)
def initialize(symbol) @symbol = symbol.to_sym end
def ref
def ref @symbol end
def to_s
def to_s @symbol.to_s end
def valid_symbols?(symbols) # :nodoc
def valid_symbols?(symbols) # :nodoc symbols.all? { |s| @symbols.include?(s) } end