Class: NSMutableAttributedString
- Defined in:
- lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb
Instance Method Summary collapse
Instance Method Details
#+(attributedstring) ⇒ Object
175 176 177 |
# File 'lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb', line 175 def +(attributedstring) self.appendAttributedString(attributedstring.nsattributedstring) end |
#with_attributes(attributes) ⇒ Object
170 171 172 173 |
# File 'lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb', line 170 def with_attributes(attributes) self.addAttributes(attributes, range:[0, self.length]) self end |