Sha256: 290cfa67518684f3f8fe85302925dc4a13468b5e2a6f926dc896cfa2823e29ee

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 Bytes

Contents

# encoding: utf-8
module Infoboxer
  module Tree
    # Represents footnote.
    #
    # Is not rendered in text flow, so, wikitext like
    #
    # ```
    # ...pushed it back into underdevelopment,<ref>...tons of footnote text...</ref> though it nevertheless...
    # ```
    # when parsed and {Node#text} called, will return text like:
    #
    # ```
    # ...pushed it back into underdevelopment, though it nevertheless...
    # ```
    # ...which most times is most reasonable thing to do.
    class Ref < Compound
      # @!attribute [r] name
      def_readers :name

      # Internal, used by {Parser}
      def empty?
        # even empty tag should not be dropped!
        false
      end
      
      def text
        # because we want "clean" text,
        # without references & footnotes messed up in it
        '' 
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
infoboxer-0.1.0 lib/infoboxer/tree/ref.rb