Class: Attentive::Tokens::Invocation

Inherits:
StringToken show all
Defined in:
lib/attentive/tokens/invocation.rb

Instance Attribute Summary

Attributes inherited from StringToken

#string

Attributes inherited from Attentive::Token

#begin

Instance Method Summary collapse

Methods inherited from StringToken

#eql?, #hash, #initialize, #length, #to_s, #to_str

Methods inherited from Attentive::Token

#ambiguous?, #end, #entity?, #eof?, #initialize, #inspect, #matches?, #whitespace?

Constructor Details

This class inherits a constructor from Attentive::StringToken

Instance Method Details

#==(other) ⇒ Object

All invocations are equal



8
9
10
# File 'lib/attentive/tokens/invocation.rb', line 8

def ==(other)
  self.class == other.class
end

#skippable?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/attentive/tokens/invocation.rb', line 12

def skippable?
  true
end