Class: SBConstants::Query
- Inherits:
-
Struct
- Object
- Struct
- SBConstants::Query
- Defined in:
- lib/sbconstants/query.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#node ⇒ Object
Returns the value of attribute node.
Instance Method Summary collapse
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute
2 3 4 |
# File 'lib/sbconstants/query.rb', line 2 def attribute @attribute end |
#node ⇒ Object
Returns the value of attribute node
2 3 4 |
# File 'lib/sbconstants/query.rb', line 2 def node @node end |
Instance Method Details
#regex ⇒ Object
3 4 5 |
# File 'lib/sbconstants/query.rb', line 3 def regex @regex ||= %r!<#{node}\s.*#{attribute}=\"(.*?)\"! end |