Parent

Class/Module Index [+]

Quicksearch

ClsRuby::OneLineFormatter

Класс форматера тегов, который располагает все значения в одну строку.

Пример использования:

result = ''
formatter = ClsRuby::OneLineFormatter.new( result )
some_tag.tag_format( formatter )

Public Class Methods

new( receiver ) click to toggle source
receiver

это объект, для которого определен оператор сдвига <<.

# File lib/cls-ruby/oneline_formatter.rb, line 17
def initialize( receiver )
  @receiver = receiver
end

Public Instance Methods

finish() click to toggle source
# File lib/cls-ruby/oneline_formatter.rb, line 29
def finish
  @receiver << '} '
end
start( name ) click to toggle source
# File lib/cls-ruby/oneline_formatter.rb, line 21
def start( name )
  @receiver << '{' << name << ' '
end
value( what ) click to toggle source
# File lib/cls-ruby/oneline_formatter.rb, line 25
def value( what )
  @receiver << what << ' '
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.