Class: Fop::Nodes::Regex

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



10
11
12
# File 'lib/fop/nodes.rb', line 10

def regex
  @regex
end

#srcObject

Returns the value of attribute src

Returns:

  • (Object)

    the current value of src



10
11
12
# File 'lib/fop/nodes.rb', line 10

def src
  @src
end

#wildcardObject

Returns the value of attribute wildcard

Returns:

  • (Object)

    the current value of wildcard



10
11
12
# File 'lib/fop/nodes.rb', line 10

def wildcard
  @wildcard
end

Instance Method Details

#to_sObject



11
12
13
14
# File 'lib/fop/nodes.rb', line 11

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