Sha256: b6d28af2a968e4eaed77bb5d4ad9d8677f1d43233e9fd9f5289034f6d918d05b
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true class Scarpe class Flow < Scarpe::Widget include Scarpe::Background include Scarpe::Border display_properties :width, :height, :margin, :padding def initialize(width: nil, height: "100%", margin: nil, padding: nil, &block) super # Create the display-side widget *before* instance_eval, which will add child widgets with their display widgets create_display_widget instance_eval(&block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scarpe-0.2.1 | lib/scarpe/flow.rb |
scarpe-0.2.0 | lib/scarpe/flow.rb |