Class: Fop::Nodes::Text
- Inherits:
-
Struct
- Object
- Struct
- Fop::Nodes::Text
- Defined in:
- lib/fop/nodes.rb
Instance Attribute Summary collapse
-
#regex ⇒ Object
Returns the value of attribute regex.
-
#str ⇒ Object
Returns the value of attribute str.
-
#wildcard ⇒ Object
Returns the value of attribute wildcard.
Instance Method Summary collapse
Instance Attribute Details
#regex ⇒ Object
Returns the value of attribute regex
3 4 5 |
# File 'lib/fop/nodes.rb', line 3 def regex @regex end |
#str ⇒ Object
Returns the value of attribute str
3 4 5 |
# File 'lib/fop/nodes.rb', line 3 def str @str end |
#wildcard ⇒ Object
Returns the value of attribute wildcard
3 4 5 |
# File 'lib/fop/nodes.rb', line 3 def wildcard @wildcard end |
Instance Method Details
#to_s ⇒ Object
4 5 6 7 |
# File 'lib/fop/nodes.rb', line 4 def to_s w = wildcard ? "*" : nil "[#{w}txt] #{str}" end |