Sha256: 4125893caa1190548b6dea9053c7c9820852515029ca8195663f5c4a427a72b7

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vstudioide-0.1.0 lib/vstudioide/sln_node_mixins.rb