Module: Sauber

Extended by:
Sauber
Included in:
Sauber
Defined in:
lib/sauber.rb,
lib/sauber/base.rb,
lib/sauber/version.rb

Defined Under Namespace

Classes: Base

Constant Summary collapse

VERSION =
"0.1.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blacklistObject

Returns the value of attribute blacklist.



5
6
7
# File 'lib/sauber.rb', line 5

def blacklist
  @blacklist
end

#replacementObject

Returns the value of attribute replacement.



5
6
7
# File 'lib/sauber.rb', line 5

def replacement
  @replacement
end

#whitelistObject

Returns the value of attribute whitelist.



5
6
7
# File 'lib/sauber.rb', line 5

def whitelist
  @whitelist
end

Instance Method Details

#clean(text) ⇒ Object



11
12
13
# File 'lib/sauber.rb', line 11

def clean text
  Sauber::Base.clean text
end

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Sauber)

    the object that the method was called on



7
8
9
# File 'lib/sauber.rb', line 7

def configure
 yield self
end