Sha256: eb0bfac9c1fe720d2b90233f29b43699dba231a7f0ffb1d328dbc22a0dca37e5
Contents?: true
Size: 892 Bytes
Versions: 4
Compression:
Stored size: 892 Bytes
Contents
# frozen_string_literal: true class Shoes module Mock class TextBlock include Shoes::Mock::CommonMethods include Shoes::Mock::Clickable def initialize(dsl, opts = nil) @dsl = dsl @opts = opts end def redraw(*_opts); end def replace(*_opts) end def remove; end # A very imperfect implementation, but at least it takes up about a line. # Needed to spec scrolling behavior def contents_alignment(current_position) @dsl.absolute_top = current_position.y + (@dsl.size || 12) end def adjust_current_position(*_args); end end class Banner < TextBlock; end class Title < TextBlock; end class Subtitle < TextBlock; end class Tagline < TextBlock; end class Caption < TextBlock; end class Para < TextBlock; end class Inscription < TextBlock; end end end
Version data entries
4 entries across 4 versions & 1 rubygems