Class/Module Index [+]

Quicksearch

Ruote::WithMeta

Public Class Methods

included(target) click to toggle source

meta a la lucky stiff

# File lib/ruote/util/ometa.rb, line 36
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 49
def class_def (method_name, &block)
  class_eval { define_method name, &block }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.