GetText::PoMessageForRubyParser

Extends PoMessage for RubyParser. Implements a sort of state machine to assist the parser.

Public Instance Methods

advance_to_next_attribute() click to toggle source
    # File lib/gettext/tools/parser/ruby.rb, line 97
97:     def advance_to_next_attribute
98:       @param_number += 1
99:     end
init_param() click to toggle source
    # File lib/gettext/tools/parser/ruby.rb, line 92
92:     def init_param
93:       @param_number = 0
94:       self
95:     end
set_current_attribute(str) click to toggle source

Supports parsing by setting attributes by and by.

    # File lib/gettext/tools/parser/ruby.rb, line 86
86:     def set_current_attribute(str)
87:       param = @param_type[@param_number]
88:       raise ParseError, 'no more string parameters expected' unless param
89:       set_value(param, str)
90:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.