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