class Switchman::ActiveRecord::AttributeMethods::ClassMethods::CodeGenerator
just a dummy class with the proper interface that calls module_eval immediately
Public Class Methods
new(mod, line)
click to toggle source
# File lib/switchman/active_record/attribute_methods.rb, line 83 def initialize(mod, line) @module = mod @line = line end
Public Instance Methods
<<(string)
click to toggle source
# File lib/switchman/active_record/attribute_methods.rb, line 88 def <<(string) @module.module_eval(string, __FILE__, @line) end