Module: Im::ConstPath
- Included in:
- Im
- Defined in:
- lib/im/const_path.rb
Instance Method Summary collapse
- #cpath(mod) ⇒ Object
- #permanent_cpath(mod) ⇒ Object
- #permanent_cpath?(mod) ⇒ Boolean
- #temporary_cpath?(mod) ⇒ Boolean
Instance Method Details
#cpath(mod) ⇒ Object
10 11 12 |
# File 'lib/im/const_path.rb', line 10 def cpath(mod) real_mod_name(mod) || real_mod_to_s(mod) end |
#permanent_cpath(mod) ⇒ Object
15 16 17 18 |
# File 'lib/im/const_path.rb', line 15 def permanent_cpath(mod) name = real_mod_name(mod) return name unless temporary_name?(name) end |
#permanent_cpath?(mod) ⇒ Boolean
21 22 23 |
# File 'lib/im/const_path.rb', line 21 def permanent_cpath?(mod) !temporary_cpath?(mod) end |
#temporary_cpath?(mod) ⇒ Boolean
26 27 28 |
# File 'lib/im/const_path.rb', line 26 def temporary_cpath?(mod) temporary_name?(real_mod_name(mod)) end |