Class: NSMutableAttributedString

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

Instance Method Summary collapse

Instance Method Details

#+(attributedstring) ⇒ Object



171
172
173
# File 'lib/sugarcube-attributedstring/nsattributedstring.rb', line 171

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

#with_attributes(attributes) ⇒ Object



166
167
168
169
# File 'lib/sugarcube-attributedstring/nsattributedstring.rb', line 166

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