Sha256: c6bb174f700834b629225cec18d09cdfc050d46f98c3d1bd835d0f282e4ad66e

Contents?: true

Size: 569 Bytes

Versions: 26

Compression:

Stored size: 569 Bytes

Contents

module Opener
  module KAF
    class WordForm

      def initialize(document, xml_node)
        @document = document
        @xml_node = xml_node
      end

      def id
        return @id ||= @xml_node.attr('wid')
      end

      def text
        return @text ||= @xml_node.text
      end

      def length
        return @length ||= @xml_node.attr('length').to_i
      end

      def offset
        return @offset ||= @xml_node.attr('offset').to_i
      end

      def paragraph
        return @paragraph ||= @xml_node.attr('para').to_i
      end

    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
opener-chained-daemon-3.3.8 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.7 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.6 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.5 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.4 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.3 lib/opener/kaf/text.rb