Sha256: 032b2c1ed9c781667efd7941c0ab6dcd394c1020521d6e2cd978f0f29c6c0c74

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

module Undies

  class Raw < ::String

    # A Raw string is one that is impervious to String#gsub
    # and returns itself when `to_s` is called.  Used to circumvent
    # the default html escaping of markup

    def gsub(*args);  self; end
    def gsub!(*args); nil;  end
    def to_s;         self; end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
undies-3.1.0 lib/undies/raw.rb
undies-3.0.0 lib/undies/raw.rb