Sha256: a05d70ed9f5b12ed225118f506da0d0ca32aacea8129ff7fad3e7261f82960ad
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
# -*- encoding: utf-8 -*- # -*- frozen_string_literal: true -*- # -*- warn_indent: true -*- class Module # Returns an +Array+ with the namespaces to the current Module. # # ==== Examples # # Aaa::Bbb::Ccc::Ddd.namespaces #=> ["Aaa", "Bbb", "Ccc", "Ddd"] def namespaces name.to_s.split("::") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rb_core_extensions-0.1.3 | lib/core_extensions/module.rb |
rb_core_extensions-0.1.2 | lib/core_extensions/module.rb |