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.22.0 lib/picky/extensions/class.rb
picky-4.21.2 lib/picky/extensions/class.rb
picky-4.21.1 lib/picky/extensions/class.rb
picky-4.21.0 lib/picky/extensions/class.rb
picky-4.20.2 lib/picky/extensions/class.rb
picky-4.20.1 lib/picky/extensions/class.rb
picky-4.20.0 lib/picky/extensions/class.rb
picky-4.19.7 lib/picky/extensions/class.rb
picky-4.19.6 lib/picky/extensions/class.rb
picky-4.19.5 lib/picky/extensions/class.rb
picky-4.19.4 lib/picky/extensions/class.rb
picky-4.19.3 lib/picky/extensions/class.rb
picky-4.19.2 lib/picky/extensions/class.rb
picky-4.19.1 lib/picky/extensions/class.rb
picky-4.19.0 lib/picky/extensions/class.rb
picky-4.18.0 lib/picky/extensions/class.rb
picky-4.17.1 lib/picky/extensions/class.rb
picky-4.17.0 lib/picky/extensions/class.rb
picky-4.16.0 lib/picky/extensions/class.rb
picky-4.15.1 lib/picky/extensions/class.rb