module Card::Bootstrap::Delegate
Public Instance Methods
method_missing(method_name, *args, &block)
click to toggle source
# File lib/card/bootstrap/delegate.rb, line 4 def method_missing method_name, *args, &block # return super unless @context.respond_to? method_name if block_given? @context.send(method_name, *args, &block) else @context.send(method_name, *args) end end
respond_to_missing?(method_name, _include_private=false)
click to toggle source
# File lib/card/bootstrap/delegate.rb, line 13 def respond_to_missing? method_name, _include_private=false @context.respond_to? method_name end