Module: Queuel::Introspect
- Included in:
- Queuel, Base::Engine, Base::Queue
- Defined in:
- lib/queuel/introspect.rb
Instance Method Summary collapse
Instance Method Details
#const_with_nesting(other_name) ⇒ Object
7 8 9 |
# File 'lib/queuel/introspect.rb', line 7 def const_with_nesting(other_name) Object.module_eval("#{module_names}::#{other_name}", __FILE__, __LINE__) end |
#module_names ⇒ Object
3 4 5 |
# File 'lib/queuel/introspect.rb', line 3 def module_names self.to_s.split("::")[0..-2].join("::") end |