Class: Text

Inherits:
BasicToken show all
Defined in:
lib/rosetta/tokens/text.rb

Overview

Handles logic for Text tokens.

Constant Summary

Constants inherited from BasicToken

BasicToken::INLINE_CLASS_NAMES, BasicToken::TOP_LEVEL_CLASS_NAMES

Instance Attribute Summary

Attributes inherited from BasicToken

#source_text

Instance Method Summary collapse

Methods inherited from BasicToken

#accept, #initialize, #inline?, #node_representation, #to_s

Constructor Details

This class inherits a constructor from BasicToken

Instance Method Details

#typeObject



7
8
9
# File 'lib/rosetta/tokens/text.rb', line 7

def type
  :TEXT
end

#valueObject



11
12
13
# File 'lib/rosetta/tokens/text.rb', line 11

def value
  @source_text
end