Sha256: 33d3dc028279ff84fe5443e4ef6fd0b744fc2e1db53b12411abe75c0dffc594c

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

# DslEval

Just mix in the Robotnik::DslEval module in the class where you wish to define dsl. Then you can do something like :

```ruby
  def my_method &block
    evaluation_context.evaluate &block
  end
```

The block will be evaluated in the context of `evaluation_context`, with a reference kept to `evaluation_context` before `instance_eval` to avoid surprises.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dsl_eval-0.0.2 README.md
dsl_eval-0.0.1 README.md