Module: Hexpress::Modifier
- Defined in:
- lib/hexpress/modifier.rb,
lib/hexpress/modifier/one.rb,
lib/hexpress/modifier/many.rb,
lib/hexpress/verbal_expressions.rb
Defined Under Namespace
Constant Summary collapse
- OPEN =
"(?:"
- CLOSE =
")"
Instance Attribute Summary collapse
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Instance Method Summary collapse
Instance Attribute Details
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
5 6 7 |
# File 'lib/hexpress/modifier.rb', line 5 def operator @operator end |
Instance Method Details
#to_s ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/hexpress/modifier.rb', line 15 def to_s if @value "#{open}#{value}#{close}#{operator}" else operator end end |