module Stein

Constants

Patches
VERSION

Public Class Methods

extend(main, modes_dir) click to toggle source
# File lib/stein.rb, line 10
def Stein.extend main, modes_dir
  Dir["#{modes_dir}/*.rb"].each do |mode|
    load mode
  end
  Stein::Patches.each {|patch| main.module_eval &patch}
end
mode(*args, &block) click to toggle source
# File lib/stein.rb, line 6
def Stein.mode *args, &block
  Stein::Patches << proc { mode *args, &block }
end