Method: LHS::Problems::Base#each
- Defined in:
- lib/lhs/problems/base.rb
#each ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/lhs/problems/base.rb', line 43 def each if .is_a?(Hash) .each_key do |attribute| self[attribute].each { || yield attribute, } end elsif .is_a?(Array) .each { || yield } end end |