Class: BlueClothText

Inherits:
BlueCloth
  • Object
show all
Includes:
Stringlike
Defined in:
lib/acts_as_markup_on/exts/bluecloth.rb

Instance Method Summary collapse

Methods included from Stringlike

#method_missing

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, options = 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

Returns:

  • (Boolean)


13
14
15
# File 'lib/acts_as_markup_on/exts/bluecloth.rb', line 13

def blank?
  @string.blank?
end

#to_sObject



9
10
11
# File 'lib/acts_as_markup_on/exts/bluecloth.rb', line 9

def to_s
  @string
end