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/utilities.rb

Overview

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

Author:

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.5.4"

Class Attribute Summary collapse

Attributes included from Methods

#patch_dir, #safe_level, #trim_mode

Method Summary

Methods included from Methods

patch

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



58
59
60
# File 'lib/pattern_patch.rb', line 58

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



63
64
65
# File 'lib/pattern_patch.rb', line 63

def trim_mode
  @trim_mode
end