Sha256: b7bbcf5cf091f4f21326f266bb20fc01a259b42622a4b4f7c0b31c337573aa95
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 Bytes
Contents
require 'seory/runtime' module Seory class Repository def initialize @store = [] end def <<(page_contents) @store << page_contents end def lookup(controller) page_contents = @store.detect {|page| page.match?(controller) } Seory::Runtime.new(page_contents, controller) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
seory-0.0.3 | lib/seory/repository.rb |
seory-0.0.2 | lib/seory/repository.rb |