Class: WikiClothText

Inherits:
WikiCloth::Parser
  • Object
show all
Includes:
Stringlike
Defined in:
lib/acts_as_markup_on/exts/wikicloth.rb

Instance Method Summary collapse

Methods included from Stringlike

#method_missing

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

Returns:

  • (Boolean)


15
16
17
# File 'lib/acts_as_markup_on/exts/wikicloth.rb', line 15

def blank?
  @text.blank?
end

#to_sObject



11
12
13
# File 'lib/acts_as_markup_on/exts/wikicloth.rb', line 11

def to_s
  @text.to_s
end