Class: GraphQL::Upgrader::ProcToClassMethodTransform::NamedProcProcessor::ProcToMethodSection
- Inherits:
 - 
      Object
      
        
- Object
 - GraphQL::Upgrader::ProcToClassMethodTransform::NamedProcProcessor::ProcToMethodSection
 
 
- Defined in:
 - lib/graphql/upgrader/member.rb
 
Instance Attribute Summary collapse
- 
  
    
      #inside_proc  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute inside_proc.
 - 
  
    
      #proc_arg_names  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute proc_arg_names.
 - 
  
    
      #proc_body_end  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute proc_body_end.
 - 
  
    
      #proc_body_start  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute proc_body_start.
 - 
  
    
      #proc_defn_end  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute proc_defn_end.
 - 
  
    
      #proc_defn_indent  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute proc_defn_indent.
 - 
  
    
      #proc_defn_start  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute proc_defn_start.
 
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ ProcToMethodSection 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ProcToMethodSection.
 
Constructor Details
#initialize ⇒ ProcToMethodSection
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_proc ⇒ Object
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_names ⇒ Object
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_end ⇒ Object
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_start ⇒ Object
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_end ⇒ Object
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_indent ⇒ Object
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_start ⇒ Object
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  |