Class: Attentive::Tokens::Emoji

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

Instance Attribute Summary

Attributes inherited from StringToken

#string

Attributes inherited from Attentive::Token

#pos

Instance Method Summary collapse

Methods inherited from StringToken

#==, #initialize, #to_str

Methods inherited from Attentive::Token

#==, #ambiguous?, #entity?, #initialize, #matches?, #whitespace?

Constructor Details

This class inherits a constructor from Attentive::StringToken

Instance Method Details

#skippable?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/attentive/tokens/emoji.rb', line 11

def skippable?
  true
end

#to_sObject



7
8
9
# File 'lib/attentive/tokens/emoji.rb', line 7

def to_s
  ":#{string}:"
end