class Markie::Token

Attributes

type[R]
value[R]

Public Class Methods

new(type:, value: "") click to toggle source
# File lib/markie/token.rb, line 5
def initialize(type:, value: "")
  @type = type
  @value = value
end

Public Instance Methods

length() click to toggle source
# File lib/markie/token.rb, line 10
def length
  value.length
end
to_s() click to toggle source
# File lib/markie/token.rb, line 14
def to_s
  "{ type: #{type}, value: \"#{value}\" }"
end