Class: SGF::IdentityToken

Inherits:
Object
  • Object
show all
Defined in:
lib/sgf/parsing_tokens.rb

Instance Method Summary collapse

Instance Method Details

#still_inside?(char, token_so_far, sgf_stream) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/sgf/parsing_tokens.rb', line 2

def still_inside? char, token_so_far, sgf_stream
  char != "["
end

#transform(token) ⇒ Object



6
7
8
# File 'lib/sgf/parsing_tokens.rb', line 6

def transform token
  token.gsub "\n", ""
end