Class: NSMutableAttributedString

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb

Instance Method Summary collapse

Instance Method Details

#<<(attributedstring) ⇒ Object



146
147
148
# File 'lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb', line 146

def <<(attributedstring)
  self.appendAttributedString(attributedstring.nsattributedstring)
end

#with_attributes(attributes) ⇒ Object



141
142
143
144
# File 'lib/cocoa/sugarcube-attributedstring/nsattributedstring.rb', line 141

def with_attributes(attributes)
  self.addAttributes(attributes, range:[0, self.length])
  self
end