class ActionView::Template::Types::Type

Constants

SET

Attributes

symbol[R]

Public Class Methods

[](type) click to toggle source
# File lib/action_view/template/types.rb, line 10
def self.[](type)
  if type.is_a?(self)
    type
  else
    new(type)
  end
end
new(symbol) click to toggle source
# File lib/action_view/template/types.rb, line 20
def initialize(symbol)
  @symbol = symbol.to_sym
end

Public Instance Methods

==(type) click to toggle source
# File lib/action_view/template/types.rb, line 34
def ==(type)
  @symbol == type.to_sym unless type.blank?
end
ref() click to toggle source
# File lib/action_view/template/types.rb, line 29
def ref
  @symbol
end
Also aliased as: to_sym
to_s() click to toggle source
# File lib/action_view/template/types.rb, line 24
def to_s
  @symbol.to_s
end
Also aliased as: to_str
to_str()
Alias for: to_s
to_sym()
Alias for: ref