class Minidusen::Token
Attributes
exclude[R]
field[R]
value[R]
Public Class Methods
new(options)
click to toggle source
# File lib/minidusen/token.rb, line 6 def initialize(options) @value = options.fetch(:value) @exclude = options.fetch(:exclude, false) @field = options.fetch(:field).to_s end
Public Instance Methods
exclude?()
click to toggle source
# File lib/minidusen/token.rb, line 20 def exclude? exclude end
text?()
click to toggle source
# File lib/minidusen/token.rb, line 16 def text? field == 'text' end
to_s()
click to toggle source
# File lib/minidusen/token.rb, line 12 def to_s value end