Class: SGF::MultiPropertyToken
- Inherits:
-
Object
- Object
- SGF::MultiPropertyToken
- Defined in:
- lib/sgf/parsing_tokens.rb
Instance Method Summary collapse
Instance Method Details
#still_inside?(char, token_so_far, sgf_stream) ⇒ Boolean
22 23 24 25 |
# File 'lib/sgf/parsing_tokens.rb', line 22 def still_inside? char, token_so_far, sgf_stream return true if char != "]" sgf_stream.peek_skipping_whitespace == "[" end |
#transform(token) ⇒ Object
27 28 29 |
# File 'lib/sgf/parsing_tokens.rb', line 27 def transform token token.gsub("][", ",").split(",") end |