Class: Hash
Overview
Replace by lab42_core ASAP
Instance Method Summary collapse
Instance Method Details
#with_present(key, &blk) ⇒ Object
4 5 6 7 |
# File 'lib/lab42/tmux/extensions/hash.rb', line 4 def with_present key, &blk return nil unless has_key? key blk.( fetch key ) end |