Sha256: e6e07163fd0bedfab0c9921e614e5ca469e3d56d641e3892e268fa00f5268de6

Contents?: true

Size: 150 Bytes

Versions: 3

Compression:

Stored size: 150 Bytes

Contents

module Precssious

  Token = Struct.new :type, :data

  class Token
    def to_s
      type == :text ? "[#{data}]" : ":#{type}"
    end
  end
  
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
erikhansson-precssious-0.1.0 lib/precssious/token.rb
erikhansson-precssious-0.1.1 lib/precssious/token.rb
precssious-0.1.1 lib/precssious/token.rb