Module: Line::Matchers::Helpers
- Included in:
- And, Index, MatchEverything, MatchNothing, Not, Or, Range
- Defined in:
- lib/line/matchers/helpers.rb
Instance Method Summary collapse
Instance Method Details
#inspect_helper(parent, inspected, has_children) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/line/matchers/helpers.rb', line 4 def inspect_helper(parent, inspected, has_children) return inspected if parent && parent.class == self.class return "(#{inspected})" if parent && has_children return inspected if parent "Matcher(#{inspected})" end |