class Dusen::Token
Attributes
exclude[R]
field[R]
value[R]
Public Class Methods
new(options)
click to toggle source
# File lib/dusen/token.rb, line 8 def initialize(options) @value = options.fetch(:value) @exclude = options.fetch(:exclude) @field = options.fetch(:field).to_s end
Public Instance Methods
exclude?()
click to toggle source
# File lib/dusen/token.rb, line 22 def exclude? exclude end
text?()
click to toggle source
# File lib/dusen/token.rb, line 18 def text? field == 'text' end
to_s()
click to toggle source
# File lib/dusen/token.rb, line 14 def to_s value end