Sha256: 54db72589fd69d583bc2c5f7d7f46c3631ded14cdb2ec24dc42dd49e8d5cf007

Contents?: true

Size: 355 Bytes

Versions: 12

Compression:

Stored size: 355 Bytes

Contents

# -*- coding: utf-8 -*-

module Smalruby
  # ステージを表現するクラス
  class Stage < Canvas
    def initialize(options = {})
      defaults = {
        color: 'black'
      }
      opts = Util.process_options(options, defaults)

      super(opts.reject { |k, v| defaults.keys.include?(k) })

      fill(color: opts[:color])
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smalruby-0.0.15-x86-mingw32 lib/smalruby/stage.rb
smalruby-0.0.15 lib/smalruby/stage.rb
smalruby-0.0.14-x86-mingw32 lib/smalruby/stage.rb
smalruby-0.0.14 lib/smalruby/stage.rb
smalruby-0.0.13-x86-mingw32 lib/smalruby/stage.rb
smalruby-0.0.13 lib/smalruby/stage.rb
smalruby-0.0.12-x86-mingw32 lib/smalruby/stage.rb
smalruby-0.0.12 lib/smalruby/stage.rb
smalruby-0.0.11-x86-mingw32 lib/smalruby/stage.rb
smalruby-0.0.11 lib/smalruby/stage.rb
smalruby-0.0.10-x86-mingw32 lib/smalruby/stage.rb
smalruby-0.0.10 lib/smalruby/stage.rb