Module: Sequel::Plugins::SqlComments::ClassMethods

Defined in:
lib/sequel/plugins/sql_comments.rb

Instance Method Summary collapse

Instance Method Details

#sql_comments_class_methods(*meths) ⇒ Object

Use automatic SQL comments for the given class methods.



76
77
78
# File 'lib/sequel/plugins/sql_comments.rb', line 76

def sql_comments_class_methods(*meths)
  _sql_comments_methods(singleton_class, :class, meths)
end

#sql_comments_dataset_methods(*meths) ⇒ Object

Use automatic SQL comments for the given dataset methods.



86
87
88
89
90
91
# File 'lib/sequel/plugins/sql_comments.rb', line 86

def sql_comments_dataset_methods(*meths)
  unless @_sql_comments_dataset_module
    dataset_module(@_sql_comments_dataset_module = Module.new)
  end
  _sql_comments_methods(@_sql_comments_dataset_module, :dataset, meths)
end

#sql_comments_instance_methods(*meths) ⇒ Object

Use automatic SQL comments for the given instance methods.



81
82
83
# File 'lib/sequel/plugins/sql_comments.rb', line 81

def sql_comments_instance_methods(*meths)
  _sql_comments_methods(self, :instance, meths)
end