lib/rails/graphql/source.rb
# Add a new description hook. You can use +throw :skip+ and skip
# parent hooks. If the class is already built, then execute the hook.
# Use the +unshift: true+ to add the hook at the beginning of the
# list, which will then be the last to run
Add a new description hook. You can use +throw :skip+ and skip
parent hooks. If the class is already built, then execute the hook.
Use the +unshift: true+ to add the hook at the beginning of the
list, which will then be the last to run
Add a new description hook . You can use + throw : skip + and skip parent hooks . If the class is already built then execute the hook . Use the + unshift : true + to add the hook at the beginning of the list which will then be the last to run
def step(hook_name, unshift: false, &block)
            raise ArgumentError, <<~MSG.squish unless hook_names.include?(hook_name.to_sym)
              The #{hook_name.inspect} is not a valid hook method.
            MSG
            if built?
              catch(:skip) { send("run_#{hook_name}_hooks", block) }
            else
              hooks[hook_name.to_sym].public_send(unshift ? :unshift : :push, block)
            end
          end
def step ( hook_name , unshift : false , & block ) raise ArgumentError , <<~MSG . squish unless hook_names . include? ( hook_name . to_sym ) 
              The  #{ hook_name . inspect }  is not a valid hook method.
             MSG if built? catch ( :skip ) { send ( "run_#{hook_name}_hooks" , block ) } else hooks [ hook_name . to_sym ] . public_send ( unshift ? :unshift : :push , block ) end end
Add a new description hook.
Add a new description hook .
hook_name
unshift
block