module RailsAssist::Artifact RailsAssist.artifacts.each do |name| plural_name = name.to_s.pluralize class_eval %{ module #{name.to_s.camelize} def create_#{name} name, options={}, &block create_artifact(name, set(options, :#{name}), &block) end end } end end