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