Module: Sequel::Plugins::SqlComments::ClassMethods
- Defined in:
- lib/sequel/plugins/sql_comments.rb
Instance Method Summary collapse
- 
  
    
      #sql_comments_class_methods(*meths)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Use automatic SQL comments for the given class methods. 
- 
  
    
      #sql_comments_dataset_methods(*meths)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Use automatic SQL comments for the given dataset methods. 
- 
  
    
      #sql_comments_instance_methods(*meths)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Use automatic SQL comments for the given instance methods. 
Instance Method Details
#sql_comments_class_methods(*meths) ⇒ Object
Use automatic SQL comments for the given class methods.
| 81 82 83 | # File 'lib/sequel/plugins/sql_comments.rb', line 81 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.
| 91 92 93 94 95 96 | # File 'lib/sequel/plugins/sql_comments.rb', line 91 def sql_comments_dataset_methods(*meths) unless @_sql_comments_dataset_module dataset_module(@_sql_comments_dataset_module = Sequel.set_temp_name(Module.new){"#{name}::@_sql_comments_dataset_module"}) 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.
| 86 87 88 | # File 'lib/sequel/plugins/sql_comments.rb', line 86 def sql_comments_instance_methods(*meths) _sql_comments_methods(self, :instance, meths) end |