Class: Typisch::DSLContext

Inherits:
Object
  • Object
show all
Includes:
DSL
Defined in:
lib/typisch/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL

#_normalize_object_args, #_object, #annotate, #derived_from, #nullable, #object, #register, #register_type_for_class, #register_version_type_for_class, #sequence, #string, #tuple, #type, #union

Constructor Details

#initialize(registry) ⇒ DSLContext

Returns a new instance of DSLContext.



237
238
239
# File 'lib/typisch/dsl.rb', line 237

def initialize(registry)
  @registry = registry
end

Instance Attribute Details

#registryObject (readonly)

Returns the value of attribute registry.



235
236
237
# File 'lib/typisch/dsl.rb', line 235

def registry
  @registry
end