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.28 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.27 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.26 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.25 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.24 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.23 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.22 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.21 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.20 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.19 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.18 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.17 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.16 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.15 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.14 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.13 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.12 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.11 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.10 lib/opener/kaf/text.rb
opener-chained-daemon-3.3.9 lib/opener/kaf/text.rb