Class: SBConstants::Query

Inherits:
Struct
  • Object
show all
Defined in:
lib/sbconstants/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



2
3
4
# File 'lib/sbconstants/query.rb', line 2

def attribute
  @attribute
end

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



2
3
4
# File 'lib/sbconstants/query.rb', line 2

def node
  @node
end

Instance Method Details

#regexObject



3
4
5
# File 'lib/sbconstants/query.rb', line 3

def regex
  @regex ||= %r!<#{node}\s.*#{attribute}=\"(.*?)\"!
end