Sha256: 1050e11ce0e9c06e71b96839b0d2c43440c41f9324fd52e36e58fe457ba70f22
Contents?: true
Size: 538 Bytes
Versions: 2
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true class Scarpe class Span < Scarpe::Widget display_properties :text, :stroke, :size, :font, :html_attributes def initialize(text, stroke: nil, size: :span, font: nil, **html_attributes) @text = text @stroke = stroke @size = size @font = font @html_attributes = html_attributes super create_display_widget end def replace(text) @text = text # This should signal the display widget to change self.text = @text end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scarpe-0.2.1 | lib/scarpe/span.rb |
scarpe-0.2.0 | lib/scarpe/span.rb |