Sha256: 9a954f425b8b262fbc67a4c74c1e7b021137a2b37a34888236a77e5ead6c3e42

Contents?: true

Size: 146 Bytes

Versions: 6

Compression:

Stored size: 146 Bytes

Contents

module Kernel

  # Defines an instance method within a class.

  def class_def name, &blk
    class_eval { define_method name, &blk }
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facets-1.8.0 lib/facets/core/kernel/class_def.rb
facets-1.8.20 lib/facets/core/kernel/class_def.rb
facets-1.8.49 lib/facets/core/kernel/class_def.rb
facets-1.8.51 lib/facets/core/kernel/class_def.rb
facets-1.8.54 lib/facets/core/kernel/class_def.rb
facets-1.8.8 lib/facets/core/kernel/class_def.rb