class Bootinq::Mixins::Disabled
@api private
Public Class Methods
new(module_name, component_name)
click to toggle source
# File lib/bootinq/mixins.rb, line 56 def initialize(module_name, component_name) define_method(:name, module_name.method(:itself)) module_eval <<~RUBY, __FILE__, __LINE__ + 1 # Does nothing due to component is disabled # @return [void] def on_#{component_name}(*) end # Yields the block due to component is disabled # @yield [void] def not_#{component_name}(*) yield end RUBY end