Sha256: 66f5145ad6fd9f5b13230725f83aa6454d727c7ff63502c3dd13a6d2a56d8563

Contents?: true

Size: 736 Bytes

Versions: 6

Compression:

Stored size: 736 Bytes

Contents

# frozen_string_literal: true

require 'modern/descriptor'

# TODO: make the DSL in general more efficient
#       The various copies in every class in this DSL builder are probably
#       unavoidable. Which is a bummer. But we could probably reduce the amount
#       of code involved. I've been trying to think of a good way to make a
#       generalized builder for Dry::Struct; anybody have a good idea?
# TODO: Figure out why Docile (hence removed) causes settings leaks
#       For SOME awful reason, `@settings` in sub-scopes is leaking out to
#       parent scopes. I have only isolated this down to Docile, as when I use
#       `instance_exec` it doesn't happen.
Dir["#{__dir__}/dsl/**/*.rb"].each { |f| require_relative f }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
modern-0.5.0 lib/modern/dsl.rb
modern-0.4.6 lib/modern/dsl.rb
modern-0.4.5 lib/modern/dsl.rb
modern-0.4.4 lib/modern/dsl.rb
modern-0.4.3 lib/modern/dsl.rb
modern-0.4.2 lib/modern/dsl.rb