Sha256: d107f390aa06f62a85c69af9ca29b6cfe9efafc049968ce1195a7ddeb6545758
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
# frozen_string_literal: true class Shoes class Text include Common::Inspect include Common::LinkFinder attr_reader :to_s, :texts, :color attr_accessor :parent, :text_block def initialize(texts, color = nil) @texts = texts @color = color @to_s = @texts.map(&:to_s).join @parent = nil @text_block = nil end def app parent && parent.app end def links find_links(@texts) end private def inspect_details " \"#{self}\"" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.rc1 | lib/shoes/text.rb |