class String
Public Instance Methods
atmentions()
click to toggle source
Find all atmentions (like @name) in the string
# File lib/string_surgeon.rb, line 36 def atmentions all_atmentions(self) end
chop_at(count)
click to toggle source
Get the first count charaters of the string excluding the link html, remaining part of the string and full string
# File lib/string_surgeon.rb, line 10 def chop_at(count) result = slit_at(self, count) {:truncated => result[0], :remaining => result[1], :full_text => self} end
remaining(count)
click to toggle source
Get the remaining part of truncated string
# File lib/string_surgeon.rb, line 21 def remaining(count) slit_at(self, count)[1] end
truncate(count)
click to toggle source
Get the first count charaters of the string excluding the link html
# File lib/string_surgeon.rb, line 16 def truncate(count) slit_at(self, count)[0] end
uniq_atmentions()
click to toggle source
Find unique atmentions (like @name) in the string
# File lib/string_surgeon.rb, line 41 def uniq_atmentions unique_atmentions(self) end