Sha256: a2380af5aff71e7fcf0049de3be024d3b1fd2754fb0db53356d8eae35aba1263

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

module Haxor
  module Token
    class Label < Base
      attr_reader :label

      def initialize(label)
        @label = label
      end

      def to_bytecode
        ''
      end

      def to_s
        "Label -> #{@label}"
      end

      def size
        0
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
haxor-0.5.0 lib/haxor/token/label.rb
haxor-0.4.0 lib/haxor/token/label.rb
haxor-0.3.0 lib/haxor/token/label.rb
haxor-0.2.0 lib/haxor/token/label.rb
haxor-0.1.0 lib/haxor/token/label.rb