Sha256: d5d8a0a5f9f0c47db185c5b12945c5c4280fde7f33562ffda85de15898c1d79e
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
class Shoes class Text include Common::Inspect 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 private def inspect_details " \"#{self}\"" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.pre6 | lib/shoes/text.rb |
shoes-core-4.0.0.pre5 | lib/shoes/text.rb |
shoes-core-4.0.0.pre4 | lib/shoes/text.rb |