Sha256: feeb3da1d5a4db961bcfa5572ce52c0cc2219d87921388df5a87cd252312adc2

Contents?: true

Size: 713 Bytes

Versions: 6

Compression:

Stored size: 713 Bytes

Contents

# not actually used by wikicloth atm
module WikiCloth

  class Token
    OpenRes      = 1
    CloseRes     = 2
    OpenLink     = 3
    CloseLink    = 4
    Heading      = 5
    Word         = 6
    NewLine      = 7
    OpenElement  = 8
    CloseElement = 9
    Equals       = 10
    Quote        = 11
    BeginComment = 12
    EndComment   = 13
    BeginTable   = 14
    EndTable     = 15
    Pipe         = 16
    BoldItalic   = 17
    ListItem     = 18
    Signature    = 19
    Space        = 20
    Colon        = 21
    End          = 22

    attr_accessor :kind
    attr_accessor :value

    def initialize
      @kind = nil
      @value = nil
    end

    def unknown?
      @kind.nil?
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wikicloth-0.7.1 lib/wikicloth/token.rb
wikicloth-0.7.0 lib/wikicloth/token.rb
wikicloth-0.6.3 lib/wikicloth/token.rb
wikicloth-0.6.2 lib/wikicloth/token.rb
wikicloth-0.6.1 lib/wikicloth/token.rb
wikicloth-0.6.0 lib/wikicloth/token.rb