Module: GetText::POEntryForRubyParser

### Home Classes Methods

### In Files

- lib/gettext/tools/parser/ruby.rb

### Methods

- #advance_to_next_attribute
- #init_param
- #set_current_attribute

### Class/Module Index

Quicksearch

- GetText
- GetText::ClassInfo
- GetText::ErbParser
- GetText::GladeParser
- GetText::LocalePath
- GetText::MO
- GetText::MO::HeaderRev1
- GetText::MO::InvalidFormat
- GetText::NoboundTextDomainError
- GetText::PO
- GetText::PO::NonExistentEntryError
- GetText::POEntry
- GetText::POEntry::InvalidTypeError
- GetText::POEntry::NoMsgctxtError
- GetText::POEntry::NoMsgidError
- GetText::POEntry::NoMsgidPluralError
- GetText::POEntryForRubyParser
- GetText::POParser
- GetText::ParseError
- GetText::RubyParser
- GetText::TextDomain
- GetText::TextDomainGroup
- GetText::TextDomainManager
- GetText::Tools
- GetText::Tools::MsgInit
- GetText::Tools::MsgInit::ArgumentError
- GetText::Tools::MsgInit::Error
- GetText::Tools::MsgInit::ValidationError
- GetText::Tools::MsgMerge
- GetText::Tools::Task
- GetText::Tools::XGetText

No matching classes.

# GetText::POEntryForRubyParser

Extends POEntry 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
    def advance_to_next_attribute
      @param_number += 1
    end

init_param() click to toggle source

    # File lib/gettext/tools/parser/ruby.rb, line 92
    def init_param
      @param_number = 0
      self
    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
    def set_current_attribute(str)
      param = @param_type[@param_number]
      raise ParseError, "no more string parameters expected" unless param
      set_value(param, str)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.