Sha256: 60edbf73ec9c94b71631f00a1f22baec7e4e7e758b0351e9b0d3731650561161

Contents?: true

Size: 929 Bytes

Versions: 17

Compression:

Stored size: 929 Bytes

Contents

module Isomorfeus
  module Puppetmaster
    module SelfForwardable
      def self.extended(base)
          base.define_singleton_method(:document_forward) do |methods|
            methods.each do |method|
              define_method(method) do |*args, &block|
                @driver.send("document_#{method}", self, *args, &block)
              end
            end
          end

          base.define_singleton_method(:frame_forward) do |methods|
            methods.each do |method|
              define_method(method) do |*args|
                @driver.send("frame_#{method}", self, *args)
              end
            end
          end

          base.define_singleton_method(:node_forward) do |methods|
            methods.each do |method|
              define_method(method) do |*args|
                @driver.send("node_#{method}", self, *args)
              end
            end
          end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
isomorfeus-puppetmaster-0.3.5 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.3.4 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.3.3 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.3.2 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.3.1 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.3.0 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.9 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.8 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.7 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.6 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.5 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.4 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.3 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.2 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.1 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.2.0 lib/isomorfeus/puppetmaster/self_forwardable.rb
isomorfeus-puppetmaster-0.1.0 lib/isomorfeus/puppetmaster/self_forwardable.rb