Module: ActionView::Template::Types

Defined in:
actionview/lib/action_view/template/types.rb

Defined Under Namespace

Classes: Type

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.symbolsObject (readonly)

Returns the value of attribute symbols



41
42
43
# File 'actionview/lib/action_view/template/types.rb', line 41

def symbols
  @symbols
end

Class Method Details

.[](type) ⇒ Object



48
49
50
# File 'actionview/lib/action_view/template/types.rb', line 48

def [](type)
  @type_klass[type]
end

.delegate_to(klass) ⇒ Object



43
44
45
46
# File 'actionview/lib/action_view/template/types.rb', line 43

def delegate_to(klass)
  @symbols = klass::SET.symbols
  @type_klass = klass
end