Class: Yuriita::Inputs::Expression
- Inherits:
-
Struct
- Object
- Struct
- Yuriita::Inputs::Expression
- Defined in:
- lib/yuriita/inputs/expression.rb
Instance Attribute Summary collapse
-
#qualifier ⇒ Object
Returns the value of attribute qualifier.
-
#term ⇒ Object
Returns the value of attribute term.
Instance Method Summary collapse
Instance Attribute Details
#qualifier ⇒ Object
Returns the value of attribute qualifier
3 4 5 |
# File 'lib/yuriita/inputs/expression.rb', line 3 def qualifier @qualifier end |
#term ⇒ Object
Returns the value of attribute term
3 4 5 |
# File 'lib/yuriita/inputs/expression.rb', line 3 def term @term end |
Instance Method Details
#to_s ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/yuriita/inputs/expression.rb', line 4 def to_s if term.match?(" ") "#{qualifier}:\"#{term}\"" else "#{qualifier}:#{term}" end end |