Skip to content

Commit

Permalink
lib/lingo/database/source.rb (each_lexical): New method.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Jun 23, 2016
1 parent 2336172 commit 654b19f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/lingo/database/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ def each
end
end

def each_lexical
return enum_for(__method__) unless block_given?
each { |key, val| yield key, self.class.lexicals(val) }
end

def set(db, key, val)
db[key] = val
end
Expand Down

0 comments on commit 654b19f

Please sign in to comment.