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