Sha256: 61913466406630ad4e9db7b8c8f4fcbfe590e317a2c444f1fa1177e3730eb8b0

Contents?: true

Size: 930 Bytes

Versions: 2

Compression:

Stored size: 930 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
irb(main):001:0> require 'minitest/spec'
=> true
irb(main):002:0> Constree.p Minitest::Spec
Minitest::Spec < Minitest::Spec::DSL::InstanceMethods < Minitest::Test < Minitest::Guard < Minitest::Test::LifecycleHooks < Minitest::Reportable < Minitest::Assertions < Minitest::Runnable < Object < Minitest::Expectations < Kernel < BasicObject
├─DSL (Module)
│ ├─InstanceMethods (Module)
│ └─TYPES (Array)
├─TYPES → Minitest::Spec::DSL::TYPES
├─PASSTHROUGH_EXCEPTIONS (Array)
├─TEARDOWN_METHODS (Array)
├─LifecycleHooks (Module)
├─E (String)
├─UNDEFINED (Object)
└─SIGNALS (Hash)
=> nil
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
constree-0.1.6 README.md
constree-0.1.5 README.md