Sha256: c76e5e4b1b7f4b170bba82c60ebbb4edfc5c752d0b26ecf447197b86a59961d9

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

module Log2mail
  module Config
    class Attribute
      attr_reader :name, :value
      def initialize( name, value )
        @name  = name.to_sym
        @value = value
      end
      def ==(other)
        self.name == other.name and self.value == other.value
      end
      def inspect
        'Attribute %s = %s' % [@name.inspect, @value.inspect]
      end
      def tree
        {self.name => self.value}
        # self.value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
log2mail-0.0.1.pre4 lib/log2mail/config/attribute.rb