Class: NSMutableAttributedString
- Defined in:
- lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb
Instance Method Summary collapse
Instance Method Details
#<<(attributedstring) ⇒ Object
124 125 126 |
# File 'lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb', line 124 def <<(attributedstring) self.appendAttributedString(attributedstring.nsattributedstring) end |
#with_attributes(attributes) ⇒ Object
119 120 121 122 |
# File 'lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb', line 119 def with_attributes(attributes) self.addAttributes(attributes, range:[0, self.length]) self end |