Sha256: cb12fd29049da016230ca3b56d7618ad259a94173da9ca33ce624a1bef3cf329
Contents?: true
Size: 348 Bytes
Versions: 44
Compression:
Stored size: 348 Bytes
Contents
require 'ripper' module Hamlit module Concerns module Ripperable TYPE_POSITION = 1 def skip_tokens!(tokens, *types) while types.include?(type_of(tokens.first)) tokens.shift end end def type_of(token) return nil unless token token[TYPE_POSITION] end end end end
Version data entries
44 entries across 44 versions & 1 rubygems