class method self.raise_if_absolute

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v5.0.7.2

Signature

self.raise_if_absolute(path)

No documentation comment.

Parameters

path req
Source
# File activesupport/lib/active_support/core_ext/module/qualified_const.rb, line 9
    def self.raise_if_absolute(path)
      raise NameError.new("wrong constant name #$&") if path =~ /\A::[^:]+/
    end

Defined in activesupport/lib/active_support/core_ext/module/qualified_const.rb line 9 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::QualifiedConstUtils

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close