Class: HMap::HMapBucketStr
- Inherits:
-
Object
- Object
- HMap::HMapBucketStr
- Defined in:
- lib/hmap/hmap_reader.rb
Overview
hmap bucket
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#perfix ⇒ Object
readonly
Returns the value of attribute perfix.
-
#suffix ⇒ Object
readonly
Returns the value of attribute suffix.
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(key, perfix, suffix) ⇒ HMapBucketStr
constructor
A new instance of HMapBucketStr.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/hmap/hmap_reader.rb', line 6 def key @key end |
#perfix ⇒ Object (readonly)
Returns the value of attribute perfix.
6 7 8 |
# File 'lib/hmap/hmap_reader.rb', line 6 def perfix @perfix end |
#suffix ⇒ Object (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
#description ⇒ Object
14 15 16 17 18 |
# File 'lib/hmap/hmap_reader.rb', line 14 def description <<-DESC Key #{@key} -> Prefix #{@perfix}, Suffix #{@suffix} DESC end |