class GraphQL::Upgrader::RemoveMethodParensTransform

Remove parens from method call - normalize for processing

Public Instance Methods

apply(input_text) click to toggle source
# File lib/graphql/upgrader/member.rb, line 183
def apply(input_text)
  input_text.sub(
    /(field|input_field|return_field|connection|argument)\( *(.*?) *\)( *)/,
    '\1 \2\3'
  )
end