Sha256: 8a544b71ddada2cbd2999e78e0d36496f7a01eb808314011ee990c466f46ba4b

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

module Dusen
  class Atom

    attr_reader :field, :value

    def initialize(*args)
      if args.length == 2
        @field, @value = args
      else
        @field = 'text'
        @value = args.first
      end
      @field = @field.to_s
    end

    def to_s
      value
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dusen-0.1.0 lib/dusen/atom.rb