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

Instance Method Details

#each(&block) ⇒ Object

this is used to create a hash-like .each method.



224
225
226
# File 'precheck/lib/precheck/rule_processor.rb', line 224

def each(&block)
  keys.each { |key| yield(key, get_value(key: key)) }
end