Class: HMap::HMapBucketStr

Inherits:
Object
  • Object
show all
Defined in:
lib/hmap/hmap_reader.rb

Overview

hmap bucket

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, perfix, suffix) ⇒ HMapBucketStr

Returns a new instance of HMapBucketStr.



8
9
10
11
12
# File 'lib/hmap/hmap_reader.rb', line 8

def initialize(key, perfix, suffix)
  @key = key
  @perfix = perfix
  @suffix = suffix
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



6
7
8
# File 'lib/hmap/hmap_reader.rb', line 6

def key
  @key
end

#perfixObject (readonly)

Returns the value of attribute perfix.



6
7
8
# File 'lib/hmap/hmap_reader.rb', line 6

def perfix
  @perfix
end

#suffixObject (readonly)

Returns the value of attribute suffix.



6
7
8
# File 'lib/hmap/hmap_reader.rb', line 6

def suffix
  @suffix
end

Instance Method Details

#descriptionObject



14
15
16
17
18
# File 'lib/hmap/hmap_reader.rb', line 14

def description
  <<-DESC
    Key #{@key} -> Prefix #{@perfix}, Suffix #{@suffix}
  DESC
end