Class: Fop::Nodes::Regex
- Inherits:
-
Struct
- Object
- Struct
- Fop::Nodes::Regex
- Defined in:
- lib/fop/nodes.rb
Instance Attribute Summary collapse
-
#regex ⇒ Object
Returns the value of attribute regex.
-
#src ⇒ Object
Returns the value of attribute src.
-
#wildcard ⇒ Object
Returns the value of attribute wildcard.
Instance Method Summary collapse
Instance Attribute Details
#regex ⇒ Object
Returns the value of attribute regex
10 11 12 |
# File 'lib/fop/nodes.rb', line 10 def regex @regex end |
#src ⇒ Object
Returns the value of attribute src
10 11 12 |
# File 'lib/fop/nodes.rb', line 10 def src @src end |
#wildcard ⇒ Object
Returns the value of attribute wildcard
10 11 12 |
# File 'lib/fop/nodes.rb', line 10 def wildcard @wildcard end |
Instance Method Details
#to_s ⇒ Object
11 12 13 14 |
# File 'lib/fop/nodes.rb', line 11 def to_s w = wildcard ? "*" : nil "[#{w}reg] #{src}" end |