Class: WikiClothText
- Inherits:
-
WikiCloth::Parser
- Object
- WikiCloth::Parser
- WikiClothText
- Includes:
- Stringlike
- Defined in:
- lib/acts_as_markup_on/exts/wikicloth.rb
Instance Method Summary collapse
- #blank? ⇒ Boolean
-
#initialize(string) ⇒ WikiClothText
constructor
A new instance of WikiClothText.
- #to_s ⇒ Object
Methods included from Stringlike
Constructor Details
#initialize(string) ⇒ WikiClothText
Returns a new instance of WikiClothText.
6 7 8 9 |
# File 'lib/acts_as_markup_on/exts/wikicloth.rb', line 6 def initialize(string) @text = string super({:data => string.to_s}) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stringlike
Instance Method Details
#blank? ⇒ Boolean
15 16 17 |
# File 'lib/acts_as_markup_on/exts/wikicloth.rb', line 15 def blank? @text.blank? end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/acts_as_markup_on/exts/wikicloth.rb', line 11 def to_s @text.to_s end |