Class: GraphQL::Upgrader::ProcToClassMethodTransform::NamedProcProcessor::ProcToMethodSection

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/upgrader/member.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProcToMethodSection

Returns a new instance of ProcToMethodSection.


310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
# File 'lib/graphql/upgrader/member.rb', line 310

def initialize
  # @proc_name_sym = proc_name.to_sym
  @proc_arg_names = nil
  # Beginning of the `#{proc_name} -> {...}` call
  @proc_defn_start = nil
  # End of the last `end/}`
  @proc_defn_end = nil
  # Amount of whitespace to insert to the rewritten body
  @proc_defn_indent = nil
  # First statement of the proc
  @proc_body_start = nil
  # End of last statement in the proc
  @proc_body_end = nil
  # Used for identifying the proper block
  @inside_proc = false
end

Instance Attribute Details

#inside_procObject

Returns the value of attribute inside_proc


308
309
310
# File 'lib/graphql/upgrader/member.rb', line 308

def inside_proc
  @inside_proc
end

#proc_arg_namesObject

Returns the value of attribute proc_arg_names


308
309
310
# File 'lib/graphql/upgrader/member.rb', line 308

def proc_arg_names
  @proc_arg_names
end

#proc_body_endObject

Returns the value of attribute proc_body_end


308
309
310
# File 'lib/graphql/upgrader/member.rb', line 308

def proc_body_end
  @proc_body_end
end

#proc_body_startObject

Returns the value of attribute proc_body_start


308
309
310
# File 'lib/graphql/upgrader/member.rb', line 308

def proc_body_start
  @proc_body_start
end

#proc_defn_endObject

Returns the value of attribute proc_defn_end


308
309
310
# File 'lib/graphql/upgrader/member.rb', line 308

def proc_defn_end
  @proc_defn_end
end

#proc_defn_indentObject

Returns the value of attribute proc_defn_indent


308
309
310
# File 'lib/graphql/upgrader/member.rb', line 308

def proc_defn_indent
  @proc_defn_indent
end

#proc_defn_startObject

Returns the value of attribute proc_defn_start


308
309
310
# File 'lib/graphql/upgrader/member.rb', line 308

def proc_defn_start
  @proc_defn_start
end