Lines Matching refs:characters
7 # After this many characters the input will be cut off.
12 # The number of characters seen so far.
14 attr_reader :characters # :nodoc:
33 # next word boundary after the given number of +characters+ or +paragraphs+
36 def initialize options, characters = 100, paragraphs = 3, markup = nil
39 @character_limit = characters
42 @characters = 0
104 throw :done if @characters >= @character_limit
121 @characters = 0
135 @characters -= 4
143 throw :done if @characters >= @character_limit
156 @characters += 1 # try to include the label
215 throw :done if @characters >= @character_limit
235 if @characters >= @character_limit then
241 res << ' ...' if @characters >= @character_limit
271 characters = @characters
272 @characters += length
274 return text if @characters < @character_limit
276 remaining = @character_limit - characters