Class: Pedantic
- Inherits:
-
Object
- Object
- Pedantic
- Includes:
- Emoticons, Emphasis, Html, Punctuation, Stems, Txt, Unimportant, Uris
- Defined in:
- lib/pedantic.rb,
lib/pedantic.rb
Defined Under Namespace
Modules: Emoticons, Emphasis, Html, Punctuation, Stems, Txt, Unimportant, Uris
Constant Summary collapse
- @@processors =
[]
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(string) ⇒ Pedantic
constructor
A new instance of Pedantic.
- #to_s ⇒ Object
Methods included from Stems
Methods included from Unimportant
included, #remove_unimportant_words
Methods included from Emphasis
Methods included from Punctuation
included, #replace_punctuation
Methods included from Txt
Methods included from Emoticons
Methods included from Html
Methods included from Uris
Constructor Details
#initialize(string) ⇒ Pedantic
Returns a new instance of Pedantic.
12 13 14 |
# File 'lib/pedantic.rb', line 12 def initialize(string) @original = string end |
Class Method Details
.fix(string) ⇒ Object
4 5 6 |
# File 'lib/pedantic.rb', line 4 def self.fix(string) Pedantic.new(string).to_s end |
.processors(*methods) ⇒ Object
8 9 10 |
# File 'lib/pedantic.rb', line 8 def self.processors(*methods) @@processors += methods end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/pedantic.rb', line 16 def to_s process end |