Class: Fop::Nodes::Text

Inherits:
Struct
  • Object
show all
Defined in:
lib/fop/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#regexObject

Returns the value of attribute regex

Returns:

  • (Object)

    the current value of regex



3
4
5
# File 'lib/fop/nodes.rb', line 3

def regex
  @regex
end

#strObject

Returns the value of attribute str

Returns:

  • (Object)

    the current value of str



3
4
5
# File 'lib/fop/nodes.rb', line 3

def str
  @str
end

#wildcardObject

Returns the value of attribute wildcard

Returns:

  • (Object)

    the current value of wildcard



3
4
5
# File 'lib/fop/nodes.rb', line 3

def wildcard
  @wildcard
end

Instance Method Details

#to_sObject



4
5
6
7
# File 'lib/fop/nodes.rb', line 4

def to_s
  w = wildcard ? "*" : nil
  "[#{w}txt] #{str}"
end