Class: YardSequel::Associations::OneToManyHandler

Inherits:
AssociationHandler
  • Object
show all
Includes:
DatasetMethod, ToManyMethods
Defined in:
lib/yard-sequel/associations/one_to_many_handler.rb

Overview

The handler class for Sequel one_to_many associations.

Instance Method Summary collapse

Methods included from ToManyMethods

#create_to_many_adder, #create_to_many_clearer, #create_to_many_getter, #create_to_many_remover

Methods included from DatasetMethod

#create_dataset_method

Methods inherited from AssociationHandler

#add_param_tag, #association_class, #association_class_namespace, #association_full_class, #association_name, #association_options, #create_method_object, #return_tag, #void_return_tag

Instance Method Details

#processObject


13
14
15
16
17
18
19
20
21
22
23
# File 'lib/yard-sequel/associations/one_to_many_handler.rb', line 13

def process
  super
  original_group = extra_state.group
  extra_state.group = "One to many #{association_name} association"
  create_to_many_adder
  create_to_many_clearer
  create_to_many_getter
  create_to_many_remover
  create_dataset_method
  extra_state.group = original_group
end