Sha256: d02a2bd34369634d29017dee78117d588dd164d858cd8d70f98f28c71b9c8a2b

Contents?: true

Size: 748 Bytes

Versions: 4

Compression:

Stored size: 748 Bytes

Contents

# Constree

Recursively show the structure of constants in a module

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'constree'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install constree

## Example: constants in Minitest::Spec

```ruby
2.2.2 :001 > require 'constree/module'
 => true
2.2.2 :002 > require 'minitest/spec'
 => true
2.2.2 :003 > Minitest::Spec.constreep
Minitest::Spec (Class)
├─DSL (Module)
│ ├─TYPES (Array)
│ └─InstanceMethods (Module)
├─TYPES → Minitest::Spec::DSL::TYPES
├─PASSTHROUGH_EXCEPTIONS (Array)
├─TEARDOWN_METHODS (Array)
├─LifecycleHooks (Module)
├─UNDEFINED (Object)
├─E (String)
└─SIGNALS (Hash)
 => nil
```

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
constree-0.1.4 README.md
constree-0.1.3 README.md
constree-0.1.2 README.md
constree-0.1.1 README.md