Class: GraphQL::Upgrader::RemoveEmptyBlocksTransform

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

Instance Method Summary collapse

Methods inherited from Transform

#apply_processor, #normalize_type_expression, #reindent_lines, #trim_lines, #underscorize

Instance Method Details

#apply(input_text) ⇒ Object



701
702
703
# File 'lib/graphql/upgrader/member.rb', line 701

def apply(input_text)
  input_text.gsub(/\s*do\s*end/m, "")
end