Sha256: 40445b6bd1f13e29bbf4d0659adcb8684f0b4f0836d9ae88e4e95e24f55100a5
Contents?: true
Size: 325 Bytes
Versions: 4
Compression:
Stored size: 325 Bytes
Contents
# frozen_string_literal: true class Shoes class Span < Text def initialize(texts, styles = {}) @style = styles super texts, styles.delete(:color) end def style if @parent && @parent.respond_to?(:style) @parent.style.merge(@style) else @style end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.pre12 | lib/shoes/span.rb |
shoes-core-4.0.0.pre11 | lib/shoes/span.rb |
shoes-core-4.0.0.pre10 | lib/shoes/span.rb |
shoes-core-4.0.0.pre9 | lib/shoes/span.rb |