Method: PatternPatch::Patch#global

Defined in:
lib/pattern_patch/patch.rb

#globaltrue, false

Setting this to true will apply the patch to all matches in the file. By default (when false), the patch is only applied to the first match.

Returns:

  • (true, false)

    Whether this patch is global



29
30
31
# File 'lib/pattern_patch/patch.rb', line 29

def global
  @global
end