Sha256: ee560adeb1742dc5090628ec6bf8ecbd3860fab6282b9eac82ff9d036917e691

Contents?: true

Size: 410 Bytes

Versions: 56

Compression:

Stored size: 410 Bytes

Contents

class Bootstrap
  module Delegate
    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

    def respond_to_missing? method_name, _include_private=false
      @context.respond_to? method_name
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
card-mod-bootstrap-0.11.7 lib/bootstrap/delegate.rb
card-mod-bootstrap-0.11.6 lib/bootstrap/delegate.rb
card-mod-bootstrap-0.11.5 lib/bootstrap/delegate.rb
card-mod-bootstrap-0.11.4 lib/bootstrap/delegate.rb
card-mod-bootstrap-0.11.3 lib/bootstrap/delegate.rb
card-mod-bootstrap-0.11.2 lib/bootstrap/delegate.rb
card-mod-bootstrap-0.11.1 lib/bootstrap/delegate.rb
card-mod-bootstrap-0.11.0 lib/bootstrap/delegate.rb
card-1.100.0 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.99.6 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.99.5 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.99.4 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.99.3 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.99.2 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.99.1 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.99.0 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.98.3 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.98.2 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.98.1 mod/bootstrap/lib/bootstrap/delegate.rb
card-1.98.0 mod/bootstrap/lib/bootstrap/delegate.rb