require 'vstudioide/core_ext/string' module VStudioIDE module SLNNodeMixin module TypedNode attr_reader :type attr_reader :params private def parse(line, io) if line.begin? '(' line.slice!(0, 1) idx = line.index(')') raise IOError, "End-of-type delimiter not found." if idx.nil? @type = line.slice!(0, idx) line.slice!(0, 1) line.strip! end if line.begin? '=' line.slice!(0, 1) line.strip! @params = line.dup end end end end end