Sha256: ef29d76b518b496b8856061b6d479e09a55820f4a7b1c297042067d720068e0d
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
module Pacer module IndexMixin def graph=(graph) @graph = graph end def graph @graph if defined? @graph end def first(key, value, extensions = nil) e = get(key, value).first if e and (graph or extensions) e.graph = graph e.add_extensions extensions end e end def all(key, value, extensions = nil) iter = get(key, value) if graph or extensions iter.extend Pacer::Core::Route::IteratorExtensionsMixin iter.graph = graph iter.extensions = extensions end iter end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pacer-0.9.1.1-java | lib/pacer/graph/index_mixin.rb |