Sha256: 2a1559947f4e2824cc379e67ad815a315e3900fcea83151cc94ed71eb365f557
Contents?: true
Size: 367 Bytes
Versions: 9
Compression:
Stored size: 367 Bytes
Contents
module Minidusen class Token attr_reader :field, :value, :exclude def initialize(options) @value = options.fetch(:value) @exclude = options.fetch(:exclude, false) @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
9 entries across 9 versions & 1 rubygems