Sha256: 0733f0ffd7cf1f00f59de8c4957846b923a1ec3ab8330f5f307b35cbfc48460b

Contents?: true

Size: 246 Bytes

Versions: 3

Compression:

Stored size: 246 Bytes

Contents

class Object
  def self.const_missing(c)
    return nil if @calling_const_missing

    @calling_const_missing = true
    require Rulers.to_underscore(c.to_s)
    klass = Object.const_get(c)
    @calling_const_missing = false

    klass
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
erik_rulers-0.0.5 lib/rulers/dependencies.rb
erik_rulers-0.0.4 lib/rulers/dependencies.rb
rulers_seanfred-0.0.2 lib/rulers/dependencies.rb