Sha256: dd8e259f48295b883a8c64fadd139c4a6b8c2f64655cf31542088f94d8de4612

Contents?: true

Size: 199 Bytes

Versions: 71

Compression:

Stored size: 199 Bytes

Contents

class UILabel

  def to_s(options={})
    text = self.text
    if text && text.length > 20
      text = text[0..20] + '...'
    end
    super options.merge(inner: 'text: ' + text.inspect)
  end

end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
sugarcube-1.1.0 lib/sugarcube-to_s/uilabel.rb
sugarcube-1.0.7 lib/sugarcube-to_s/uilabel.rb
sugarcube-1.0.6 lib/sugarcube-to_s/uilabel.rb
sugarcube-1.0.5 lib/sugarcube-to_s/uilabel.rb
sugarcube-1.0.4 lib/sugarcube-to_s/uilabel.rb
sugarcube-1.0.3 lib/sugarcube-to_s/uilabel.rb
sugarcube-1.0.2 lib/sugarcube-to_s/uilabel.rb
sugarcube-1.0.1 lib/sugarcube-to_s/uilabel.rb
sugarcube-1.0.0 lib/sugarcube-to_s/uilabel.rb
sugarcube-0.20.25 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.24 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.23 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.22 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.21 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.20 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.19 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.18 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.17 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.16 lib/sugarcube/to_s/uilabel.rb
sugarcube-0.20.15 lib/sugarcube/to_s/uilabel.rb