Method: Console1984::Ext::Core::Module#method_added
- Defined in:
- lib/console1984/ext/core/module.rb
#method_added(method) ⇒ Object
16 17 18 19 20 |
# File 'lib/console1984/ext/core/module.rb', line 16 def method_added(method) if Console1984.command_executor.from_irb?(caller) && banned_for_reopening? raise Console1984::Errors::ForbiddenCommandExecuted, "Trying to add method `#{method}` to #{self.name}" end end |