Class: Mutant::AST::Pattern::Node::Attribute::Value::Single Private

Inherits:
Mutant::AST::Pattern::Node::Attribute::Value show all
Includes:
Unparser::Adamantium
Defined in:
lib/mutant/ast/pattern.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#match?(input) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


30
31
32
# File 'lib/mutant/ast/pattern.rb', line 30

def match?(input)
  input.eql?(value)
end

#syntaxObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



34
35
36
# File 'lib/mutant/ast/pattern.rb', line 34

def syntax
  value
end