Module: PatternPatch

Extended by:
Forwardable, Methods
Defined in:
lib/pattern_patch.rb,
lib/pattern_patch/patch.rb,
lib/pattern_patch/version.rb,
lib/pattern_patch/renderer.rb,
lib/pattern_patch/utilities.rb

Overview

Utility gem for modifying arbitrary text files using a method similar to rendering Rails partials.

Defined Under Namespace

Modules: Methods Classes: ConfigurationError, Error, Patch, Renderer, Utilities

Constant Summary collapse

VERSION =
"1.1.0"

Class Attribute Summary collapse

Attributes included from Methods

#patch_dir, #safe_level, #trim_mode

Method Summary

Methods included from Methods

patch, patch_config

Class Attribute Details

.safe_levelObject?

The default safe level to use with ERb. Defaults to nil.

Returns:

  • (Object, nil)

    The current default safe level for ERb



85
86
87
# File 'lib/pattern_patch.rb', line 85

def safe_level
  @safe_level
end

.trim_modeString?

The default trim mode to use with ERb. Defaults to nil.

Returns:

  • (String, nil)

    The current default trim mode for ERb



90
91
92
# File 'lib/pattern_patch.rb', line 90

def trim_mode
  @trim_mode
end