Registry / utility / docile

docile

JSON →
library1.4.1rbrubygemsunverified

Docile treats the methods of a given ruby object as a DSL within a given block, allowing access to the original context.

gem install docile
INSTALL
IMPORT
SIG · DOCILE
D
docile
utilityrubyv1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Docile
require 'docile'

Evaluate a block as a DSL on an object

require 'docile' class MyDSL def greet(name) "Hello, #{name}!" end end result = Docile.dsl_eval(MyDSL.new) do greet("World") end puts result
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
docile — gem install docile · libregistry