Class: Delorean::BaseModule::BaseClass
- Inherits:
-
Object
- Object
- Delorean::BaseModule::BaseClass
- Defined in:
- lib/marty/monkey.rb
Overview
Be able to access Enums from Delorean
Class Method Summary collapse
Class Method Details
._get_attr(obj, attr, _e) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/marty/monkey.rb', line 12 def _get_attr(obj, attr, _e) if (Marty::Enum === obj || Marty::PgEnum === obj) && !obj.respond_to?(attr) obj[attr] else old_get_attr(obj, attr, _e) end end |
.old_get_attr ⇒ Object
10 |
# File 'lib/marty/monkey.rb', line 10 alias_method :old_get_attr, :_get_attr |