Class: Lrama::Lexer::Token::Tag

Inherits:
Lrama::Lexer::Token show all
Defined in:
lib/lrama/lexer/token/tag.rb

Instance Attribute Summary

Attributes inherited from Lrama::Lexer::Token

#alias_name, #location, #referred, #s_value

Instance Method Summary collapse

Methods inherited from Lrama::Lexer::Token

#==, #first_column, #first_line, #initialize, #invalid_ref, #last_column, #last_line, #referred_by?, #to_s

Constructor Details

This class inherits a constructor from Lrama::Lexer::Token

Instance Method Details

#memberObject



9
10
11
12
# File 'lib/lrama/lexer/token/tag.rb', line 9

def member
  # Omit "<>"
  s_value[1..-2] or raise "Unexpected Tag format (#{s_value})"
end