Module: QualifiedConstUtils
Relationships & Source Files | |
Defined in: | activesupport/lib/active_support/core_ext/module/qualified_const.rb |
Class Method Summary
Class Method Details
.names(path)
[ GitHub ]# File 'activesupport/lib/active_support/core_ext/module/qualified_const.rb', line 11
def self.names(path) path.split('::') end
.raise_if_absolute(path)
# File 'activesupport/lib/active_support/core_ext/module/qualified_const.rb', line 7
def self.raise_if_absolute(path) raise NameError.new("wrong constant name #$&") if path =~ /\A::[^:]+/ end