Class/Module Index [+]

Quicksearch

Ruote::WithMeta

meta a la lucky stiff

Public Class Methods

included(target) click to toggle source
# File lib/ruote/util/ometa.rb, line 35
def self.included(target)

  def target.metaclass
    class << self
      self
    end
  end
  def target.meta_eval(&block)
    metaclass.instance_eval(&block)
  end
  def target.meta_def(method_name, &block)
    meta_eval { define_method method_name, &block }
  end
  def class_def(method_name, &block)
    class_eval { define_method name, &block }
  end
end

Public Instance Methods

class_def(method_name, &block) click to toggle source
# File lib/ruote/util/ometa.rb, line 48
def class_def(method_name, &block)
  class_eval { define_method name, &block }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.