Class: Hubbado::Sequence::Ctx
- Inherits:
-
Hash
- Object
- Hash
- Hubbado::Sequence::Ctx
- Defined in:
- lib/hubbado/sequence/ctx.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build(initial = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/hubbado/sequence/ctx.rb', line 4 def self.build(initial = {}) ctx = new ctx.merge!(initial) ctx end |
Instance Method Details
#[](key) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/hubbado/sequence/ctx.rb', line 10 def [](key) unless key?(key) raise KeyError, "key not found: #{key.inspect}" end super end |