Class: BlueClothText
- Inherits:
-
BlueCloth
- Object
- BlueCloth
- BlueClothText
- Includes:
- Stringlike
- Defined in:
- lib/acts_as_markup_on/exts/bluecloth.rb
Instance Method Summary collapse
- #blank? ⇒ Boolean
-
#initialize(string, options = BlueCloth::DEFAULT_OPTIONS) ⇒ BlueClothText
constructor
A new instance of BlueClothText.
- #to_s ⇒ Object
Methods included from Stringlike
Constructor Details
#initialize(string, options = BlueCloth::DEFAULT_OPTIONS) ⇒ BlueClothText
Returns a new instance of BlueClothText.
4 5 6 7 |
# File 'lib/acts_as_markup_on/exts/bluecloth.rb', line 4 def initialize(string, = BlueCloth::DEFAULT_OPTIONS) @string = string super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stringlike
Instance Method Details
#blank? ⇒ Boolean
13 14 15 |
# File 'lib/acts_as_markup_on/exts/bluecloth.rb', line 13 def blank? @string.blank? end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/acts_as_markup_on/exts/bluecloth.rb', line 9 def to_s @string end |