Sha256: 39ca103a9bf7f8d57cc75654dc421dafcb06b2506317b0f357888b97d54fcedd

Contents?: true

Size: 840 Bytes

Versions: 4

Compression:

Stored size: 840 Bytes

Contents

# DslEvaluator

Small module to help with DSL evaluation. Notably, it produces a human-friendly backtrace error showing the original user-provided source code if there's a syntax error.

## Usage

```ruby
require "dsl_evaluator"
DslEvaluator.backtrace_reject = "lib/my_gem" # optional

class DslBuilder
  def build
    path = "/path/to/user/provided/dsl/file.rb"
    evaluate_file(path)
  end
end
```

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'dsl_evaluator'
```

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install dsl_evaluator

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tongueroo/dsl_evaluator.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dsl_evaluator-0.1.3 README.md
dsl_evaluator-0.1.2 README.md
dsl_evaluator-0.1.1 README.md
dsl_evaluator-0.1.0 README.md