Sha256: 8f3a7e484b97f0af33138be50ff7f90395e6dceb8621eaebb951d7e6782bb3d0

Contents?: true

Size: 374 Bytes

Versions: 135

Compression:

Stored size: 374 Bytes

Contents

require "expressir/express/model_element"

module Expressir
  module Express
    class NamedType < ModelElement
      attr_accessor :name, :schema, :wheres, :selectedBy

      def self.find_by_name(name)
        found = nil

        ObjectSpace.each_object(NamedType) do |obj|
          found = obj if obj.name == name
        end

        found
      end
    end
  end
end

Version data entries

135 entries across 135 versions & 1 rubygems

Version Path
expressir-0.2.7-x86-mingw32 lib/expressir/express/named_type.rb
expressir-0.2.7-x64-mingw32 lib/expressir/express/named_type.rb
expressir-0.2.7-x86_64-linux lib/expressir/express/named_type.rb
expressir-0.2.7-x86-linux lib/expressir/express/named_type.rb
expressir-0.2.7-x86_64-darwin lib/expressir/express/named_type.rb
expressir-0.2.7-arm64-darwin lib/expressir/express/named_type.rb
expressir-0.2.5-x86_64-linux lib/expressir/express/named_type.rb
expressir-0.2.5-x86_64-darwin-19 lib/expressir/express/named_type.rb
expressir-0.2.5 lib/expressir/express/named_type.rb
expressir-0.2.4 lib/expressir/express/named_type.rb
expressir-0.2.3 lib/expressir/express/named_type.rb
expressir-0.2.2 lib/expressir/express/named_type.rb
expressir-0.2.1 lib/expressir/express/named_type.rb
expressir-0.2.0 lib/expressir/express/named_type.rb
expressir-0.1.0 lib/expressir/express/named_type.rb