Module: LanguageItemHashBehavior
- Included in:
- Spaceship::Tunes::LanguageItem
- Defined in:
- precheck/lib/precheck/rule_processor.rb
Overview
we want to get some of the same behavior hashes has, so use this mixin specifically designed for Spaceship::Tunes::LanguageItem because we use .each
Instance Method Summary collapse
-
#each(&block) ⇒ Object
this is used to create a hash-like .each method.
Instance Method Details
#each(&block) ⇒ Object
this is used to create a hash-like .each method.
258 259 260 |
# File 'precheck/lib/precheck/rule_processor.rb', line 258 def each(&block) keys.each { |key| yield(key, get_value(key: key)) } end |