Sha256: 341d1086dac14a7784e7a1072fd95f02cba8a5aee9e626b92e67d618bcbffeea

Contents?: true

Size: 306 Bytes

Versions: 55

Compression:

Stored size: 306 Bytes

Contents

# The original Class class.
#
class Class

  def instance_forward *method_names
    method_names.each do |method_name|
      module_eval(<<-FORWARDING, "(__INSTANCE_FORWARDING__)", 1)
def self.#{method_name}(*args, &block)\n  self.instance.#{method_name}(*args, &block)\nend\n
FORWARDING
    end
  end

end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
picky-4.31.3 lib/picky/extensions/class.rb
picky-4.31.2 lib/picky/extensions/class.rb
picky-4.31.1 lib/picky/extensions/class.rb
picky-4.31.0 lib/picky/extensions/class.rb
picky-4.30.0 lib/picky/extensions/class.rb
picky-4.29.0 lib/picky/extensions/class.rb
picky-4.28.1 lib/picky/extensions/class.rb
picky-4.27.1 lib/picky/extensions/class.rb
picky-4.27.0 lib/picky/extensions/class.rb
picky-4.26.2 lib/picky/extensions/class.rb
picky-4.26.1 lib/picky/extensions/class.rb
picky-4.26.0 lib/picky/extensions/class.rb
picky-4.25.3 lib/picky/extensions/class.rb
picky-4.25.2 lib/picky/extensions/class.rb
picky-4.25.1 lib/picky/extensions/class.rb
picky-4.25.0 lib/picky/extensions/class.rb
picky-4.24.0 lib/picky/extensions/class.rb
picky-4.23.2 lib/picky/extensions/class.rb
picky-4.23.1 lib/picky/extensions/class.rb
picky-4.23.0 lib/picky/extensions/class.rb