Class: Fop::Nodes::Arg
- Inherits:
-
Struct
- Object
- Struct
- Fop::Nodes::Arg
- Defined in:
- lib/fop/nodes.rb
Instance Attribute Summary collapse
-
#has_captures ⇒ Object
Returns the value of attribute has_captures.
-
#segments ⇒ Object
Returns the value of attribute segments.
Instance Method Summary collapse
Instance Attribute Details
#has_captures ⇒ Object
Returns the value of attribute has_captures
31 32 33 |
# File 'lib/fop/nodes.rb', line 31 def has_captures @has_captures end |
#segments ⇒ Object
Returns the value of attribute segments
31 32 33 |
# File 'lib/fop/nodes.rb', line 31 def segments @segments end |
Instance Method Details
#to_s ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/fop/nodes.rb', line 32 def to_s segments.map { |s| case s when Integer then "$#{s + 1}" else s.to_s end }.join("") end |