module JustInclude

JustInclude see homepage for more info: github.com/kubenstein/just_include

Constants

VERSION

Public Class Methods

included(including_module) click to toggle source
# File lib/just_include/just_include.rb, line 8
def self.included(including_module)
  class << including_module;  attr_accessor :just_include_block; end

  def including_module.included(including_class)
    including_class.class_eval(&(self.just_include_block))
  end

  def including_module.this_code(&block)
    self.just_include_block = block
  end
end