module Outil
Constants
- VERSION
Public Class Methods
included(base)
click to toggle source
# File lib/outil.rb, line 27 def self.included(base) # Add the decorator class-method logic to the includer # E.G. The client has control over the "use" and "named" # class-level directives. base.extend(Inferace) # By default, only the Registration decorator # is added, and it's added under the generic :outil namespace base.class_eval do use Decorators::Register named :outil end # Pull all the AST's in the user index # and define them as methods of the Bucket # module just before the inclusion is done. Workspace.ocs.index.all.each do |ast| Outil.module_eval <<-RUBY_EVAL #{Unparser.unparse(ast)} RUBY_EVAL end end
index()
click to toggle source
# File lib/outil.rb, line 19 def self.index Workspace.ocs.index end
reset!()
click to toggle source
# File lib/outil.rb, line 23 def self.reset! Workspace.reset! end