Sha256: 1e0034e7fcdcd9b791617118ce71d7dd746a4978fae0a66f8e26d27228b0b80b

Contents?: true

Size: 161 Bytes

Versions: 3

Compression:

Stored size: 161 Bytes

Contents

class Symbol
  # looks up this symbol as a constant defined in 'ns' (Object by default)
  def const_lookup(ns=Object)
    self.to_s.const_lookup(ns)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbkb-0.7.2 lib/rbkb/extends/symbol.rb
rbkb-0.7.1 lib/rbkb/extends/symbol.rb
rbkb-0.7.0 lib/rbkb/extends/symbol.rb