Class: NSMutableAttributedString
- Defined in:
- lib/sugarcube-attributedstring/nsattributedstring.rb
Instance Method Summary collapse
Instance Method Details
#+(attributedstring) ⇒ Object
243 244 245 |
# File 'lib/sugarcube-attributedstring/nsattributedstring.rb', line 243 def +(attributedstring) self.appendAttributedString(attributedstring.nsattributedstring) end |
#with_attributes(attributes) ⇒ Object
238 239 240 241 |
# File 'lib/sugarcube-attributedstring/nsattributedstring.rb', line 238 def with_attributes(attributes) self.addAttributes(attributes, range:[0, self.length]) self end |