Class: Metamorpher::Terms::Variable
- Defined in:
- lib/metamorpher/terms/variable.rb
Constant Summary collapse
- DEFAULT_CONDITION =
->(_) { true }
Instance Attribute Summary
Attributes inherited from Term
Instance Method Summary collapse
Methods inherited from Term
#alternatives, #path, #with_younger_siblings
Methods included from Rewriter::Substitution
Methods included from Rewriter::Replacement
Methods included from Matcher::Matching
Methods included from Visitable
Instance Method Details
#inspect ⇒ Object
10 11 12 13 14 |
# File 'lib/metamorpher/terms/variable.rb', line 10 def inspect name.to_s.upcase + (greedy? ? "+" : "") + (condition != DEFAULT_CONDITION ? "?" : "") end |