Sha256: 0a3ade7739fe04a492a6822b92a5246c7f0c540f628fd667bcd0f36d76cf2820

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

module Hanoi
  module Jane
    class Frame
      attr_reader :stacks, :animtype, :value

      def initialize stacks, value, type
        @stacks = stacks
        @value = value
        @animtype = type
      end

      def to_dots
        Formatters::Matrix.new do |m|
          m.stacks = @stacks
          m.digits = @value
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanoi-jane-0.4.0 lib/hanoi/jane/animation/frame.rb
hanoi-jane-0.3.4 lib/hanoi/jane/animation/frame.rb
hanoi-jane-0.3.3 lib/hanoi/jane/animation/frame.rb