Sha256: 39787b46853ebed0550e2158b01858bb784398fd570eed9ec62c2a30757645a6
Contents?: true
Size: 964 Bytes
Versions: 1
Compression:
Stored size: 964 Bytes
Contents
# frozen_string_literal: true class Shoes module Mock class App attr_accessor :fullscreen def initialize(dsl) @dsl = dsl @started = false end # suboptimal but good enough for now... calling the DSL lets the methods # play ping pong calling each other... will think of something. def width @dsl.opts[:width] end def height @dsl.opts[:height] end def open @started = true self.fullscreen = true if @dsl.start_as_fullscreen? end def open? true end def focus true end def quit end def started? @started end def flush end def clipboard end def clipboard=(_text) end def gutter 16 end def wait_until_closed end def click(_blk) end def release(_blk) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.rc1 | lib/shoes/mock/app.rb |