Sha256: 5bdca590a3b8a65dfc889b5b75550379bbf4a523fc6181774b48930ea972e9e1

Contents?: true

Size: 803 Bytes

Versions: 4

Compression:

Stored size: 803 Bytes

Contents

# lib/dog
```ruby

  class Dog
    def self.say
      "Wuff"
    end
  end

```

# lib/cat
```ruby

  class Cat
    #some meow here
  end

```

# lib/cat/tail
```ruby

  class Cat
    class Tail

      def self.grab
        "MEOW!!!"
      end

    end
  end

```

# lib/cat/pawn.rb
```ruby

  class Cat
    class Pawn
    end
  end

```

# lib/bootstrap
```ruby

    require 'loader/autoload'

    # from this point missing constants will be searched by file system path that is based on Object namespace
    Loader.autoload

    # no need to load the files , only when they required
    Cat::Tail.grab #> "MEOW!!!"

    class Cat
      Pawn #> Pawn Constant loaded and returned
    end

    class Cat
      Dog #> return Top lvl Dog Constant after file is loaded by this Constant request
    end

```

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loader-3.1.0 doc/sketch.md
loader-3.0.1 doc/sketch.md
loader-3.0.0 doc/sketch.md
loader-2.2.3 doc/sketch.md