Class: ActionView::Template::SimpleType
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionview/lib/action_view/template/types.rb |
Overview
SimpleType
is mostly just a stub implementation for when Action View is used without Action Dispatch.
Class Attribute Summary
- .symbols readonly
Class Method Summary
- .[](type)
- .new(symbol) ⇒ SimpleType constructor
-
.valid_symbols?(symbols) ⇒ Boolean
:nodoc
.
Instance Attribute Summary
- #symbol readonly
Instance Method Summary
Constructor Details
.new(symbol) ⇒ SimpleType
Class Attribute Details
.symbols (readonly)
[ GitHub ]# File 'actionview/lib/action_view/template/types.rb', line 12
attr_reader :symbols
Class Method Details
.[](type)
[ GitHub ]
.valid_symbols?(symbols) ⇒ Boolean
:nodoc
Instance Attribute Details
#symbol (readonly)
[ GitHub ]# File 'actionview/lib/action_view/template/types.rb', line 27
attr_reader :symbol
Instance Method Details
#==(type)
[ GitHub ]#ref Also known as: #to_sym
[ GitHub ]# File 'actionview/lib/action_view/template/types.rb', line 38
def ref @symbol end
#to_s Also known as: #to_str
[ GitHub ]# File 'actionview/lib/action_view/template/types.rb', line 33
def to_s @symbol.to_s end
#to_str
Alias for #to_s.
# File 'actionview/lib/action_view/template/types.rb', line 36
alias to_str to_s
#to_sym
Alias for #ref.
# File 'actionview/lib/action_view/template/types.rb', line 41
alias to_sym ref