method
as_variable
rails latest stable - Class:
ActionView::PartialRenderer
as_variable(options)private
No documentation available.
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 410
def as_variable(options)
if as = options[:as]
raise_invalid_option_as(as) unless /\A[a-z_]\w*\z/.match?(as.to_s)
as.to_sym
end
end