class Nis::Unit::Hash

@attr [String] value

Attributes

value[RW]

Public Class Methods

new(value) click to toggle source
# File lib/nis/unit/hash.rb, line 6
def initialize(value)
  @value = value
end

Public Instance Methods

==(other) click to toggle source

@return [Boolean]

# File lib/nis/unit/hash.rb, line 21
def ==(other)
  @value == other.value
end
to_s() click to toggle source

@return [String]

# File lib/nis/unit/hash.rb, line 16
def to_s
  @value
end
valid?() click to toggle source

@return [Boolean]

# File lib/nis/unit/hash.rb, line 11
def valid?
  !!(@value =~ /[0-9a-f]{64}/)
end