instance method as_variable

Ruby on Rails 6.0.6

Since v6.0.6 Last seen in v6.0.6 Private

Signature

as_variable(options)

No documentation comment.

Parameters

options req
Source
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 409
      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

Defined in actionview/lib/action_view/renderer/partial_renderer.rb line 409 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::PartialRenderer

Type at least 2 characters to search.

↑↓ navigate · open · esc close