Module: Washcloth::Filters

Defined in:
lib/washcloth.rb

Defined Under Namespace

Classes: ReplaceEachCharacter, ReplaceWithBlockOutcome, ReplaceWithStaticValue

Class Method Summary collapse

Class Method Details

.block(value) ⇒ Object



111
112
113
# File 'lib/washcloth.rb', line 111

def block(value)
  ReplaceWithBlockOutcome.new(value)
end

.chars(value) ⇒ Object



107
108
109
# File 'lib/washcloth.rb', line 107

def chars(value)
  ReplaceEachCharacter.new(value)
end

.static(value) ⇒ Object



103
104
105
# File 'lib/washcloth.rb', line 103

def static(value)
  ReplaceWithStaticValue.new(value)
end