Sha256: 83e5adf82f008d1335bdf1daf07295268f12b0aa332ed16c9a69bd94d2872e83
Contents?: true
Size: 303 Bytes
Versions: 15
Compression:
Stored size: 303 Bytes
Contents
module ::RSpec::Support::RecursiveConstMethods def normalize_const_name(const_name) #const_name.sub(/\A::/, '') # the \A, which means 'beginning of string' does not work in Opal/JS regex, ^ is beginning of line, which for constant names, should work OK const_name.sub(/^::/, '') end end
Version data entries
15 entries across 15 versions & 2 rubygems