Sha256: 1fe489e326910723ad9fb0a9789384bf9081b1b7b1a21de933168d4aa6ae87f9
Contents?: true
Size: 862 Bytes
Versions: 6
Compression:
Stored size: 862 Bytes
Contents
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
6 entries across 6 versions & 1 rubygems