module Rethinker::Document::InjectionLayer::ClassMethods

Public Instance Methods

inject_in_layer(name, code, file, line) click to toggle source
# File lib/rethinker/document/injection_layer.rb, line 5
    def inject_in_layer(name, code, file, line)
      class_eval <<-RUBY, file, line
        include module RethinkerLayer; module #{name.to_s.camelize}; #{code}; self; end; end
      RUBY
    end