Sha256: 56f1cd447663d9d0ea2cf8e8bbeb650089fdb1da40e6bf77f306bcb948ceff2a
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
module Expressir module Model module Scope def find(path) path.downcase.split(".").reduce(self) do |acc, curr| if acc and acc.class.method_defined? :children acc.children.find{|x| x.id.downcase == curr} end end end def children raise 'Not implemented' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
expressir-0.2.6 | lib/expressir/model/scope.rb |
expressir-0.2.5-x64-mingw32 | lib/expressir/model/scope.rb |
expressir-0.2.4-x64-mingw32 | lib/expressir/model/scope.rb |