Module: ActionView::Template::Types

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

Defined Under Namespace

Classes: Type

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.type_klassObject

Returns the value of attribute type_klass.



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

def type_klass
  @type_klass
end

Class Method Details

.[](type) ⇒ Object



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

def [](type)
  type_klass[type]
end

.delegate_to(klass) ⇒ Object



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

def delegate_to(klass)
  self.type_klass = klass
end

.symbolsObject



51
52
53
# File 'lib/action_view/template/types.rb', line 51

def symbols
  type_klass::SET.symbols
end