Class: WirisPlugin::TextFilterTags
- Inherits:
-
Object
- Object
- WirisPlugin::TextFilterTags
- Includes:
- Wiris
- Defined in:
- lib/com/wiris/plugin/impl/TextFilterTags.rb
Instance Attribute Summary collapse
-
#in_appletclose ⇒ Object
Returns the value of attribute in_appletclose.
-
#in_appletopen ⇒ Object
Returns the value of attribute in_appletopen.
-
#in_close ⇒ Object
Returns the value of attribute in_close.
-
#in_double_quote ⇒ Object
Returns the value of attribute in_double_quote.
-
#in_entity ⇒ Object
Returns the value of attribute in_entity.
-
#in_mathclose ⇒ Object
Returns the value of attribute in_mathclose.
-
#in_mathopen ⇒ Object
Returns the value of attribute in_mathopen.
-
#in_open ⇒ Object
Returns the value of attribute in_open.
-
#in_quote ⇒ Object
Returns the value of attribute in_quote.
-
#out_close ⇒ Object
Returns the value of attribute out_close.
-
#out_double_quote ⇒ Object
Returns the value of attribute out_double_quote.
-
#out_entity ⇒ Object
Returns the value of attribute out_entity.
-
#out_open ⇒ Object
Returns the value of attribute out_open.
-
#out_quote ⇒ Object
Returns the value of attribute out_quote.
Class Method Summary collapse
Instance Method Summary collapse
- #init(tags) ⇒ Object
-
#initialize ⇒ TextFilterTags
constructor
A new instance of TextFilterTags.
Constructor Details
#initialize ⇒ TextFilterTags
Returns a new instance of TextFilterTags.
20 21 22 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 20 def initialize() super() end |
Instance Attribute Details
#in_appletclose ⇒ Object
Returns the value of attribute in_appletclose.
19 20 21 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 19 def in_appletclose @in_appletclose end |
#in_appletopen ⇒ Object
Returns the value of attribute in_appletopen.
18 19 20 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 18 def in_appletopen @in_appletopen end |
#in_close ⇒ Object
Returns the value of attribute in_close.
12 13 14 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 12 def in_close @in_close end |
#in_double_quote ⇒ Object
Returns the value of attribute in_double_quote.
8 9 10 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 8 def in_double_quote @in_double_quote end |
#in_entity ⇒ Object
Returns the value of attribute in_entity.
14 15 16 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 14 def in_entity @in_entity end |
#in_mathclose ⇒ Object
Returns the value of attribute in_mathclose.
7 8 9 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 7 def in_mathclose @in_mathclose end |
#in_mathopen ⇒ Object
Returns the value of attribute in_mathopen.
6 7 8 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 6 def in_mathopen @in_mathopen end |
#in_open ⇒ Object
Returns the value of attribute in_open.
10 11 12 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 10 def in_open @in_open end |
#in_quote ⇒ Object
Returns the value of attribute in_quote.
16 17 18 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 16 def in_quote @in_quote end |
#out_close ⇒ Object
Returns the value of attribute out_close.
13 14 15 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 13 def out_close @out_close end |
#out_double_quote ⇒ Object
Returns the value of attribute out_double_quote.
9 10 11 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 9 def out_double_quote @out_double_quote end |
#out_entity ⇒ Object
Returns the value of attribute out_entity.
15 16 17 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 15 def out_entity @out_entity end |
#out_open ⇒ Object
Returns the value of attribute out_open.
11 12 13 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 11 def out_open @out_open end |
#out_quote ⇒ Object
Returns the value of attribute out_quote.
17 18 19 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 17 def out_quote @out_quote end |
Class Method Details
.newSafeXml ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 23 def self.newSafeXml() = TextFilterTags.new() ::in_open = Std::fromCharCode(171) ::in_close = Std::fromCharCode(187) ::in_entity = Std::fromCharCode(167) ::in_quote = "`" ::in_double_quote = Std::fromCharCode(168) ::init() return end |
.newXml ⇒ Object
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 33 def self.newXml() = TextFilterTags.new() ::in_open = "<" ::in_close = ">" ::in_entity = "&" ::in_quote = "\'" ::in_double_quote = "\"" ::init() return end |
Instance Method Details
#init(tags) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/com/wiris/plugin/impl/TextFilterTags.rb', line 43 def init() ::in_appletopen = @in_open+"APPLET" ::in_appletclose = (@in_open+"/APPLET")+@in_close ::in_mathopen = @in_open+"math" ::in_mathclose = (@in_open+"/math")+@in_close ::out_open = "<" ::out_close = ">" ::out_entity = "&" ::out_quote = "\'" ::out_double_quote = "\"" end |