Sha256: d9a973a126aeaa5acfbfb40d7243b96a0de21c14f1ccd1a57d57e30fb8439c19
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
module Minidusen class Token attr_reader :field, :value, :exclude def initialize(options) @value = options.fetch(:value) @exclude = options.fetch(:exclude) @field = options.fetch(:field).to_s end def to_s value end def text? field == 'text' end def exclude? exclude end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minidusen-0.8.0 | lib/minidusen/token.rb |
minidusen-0.7.0 | lib/minidusen/token.rb |