class Dry::Doc::Type
Attributes
ref[RW]
Public Class Methods
new(inner)
click to toggle source
# File lib/dry/doc/namespace.rb, line 5 def initialize inner @inner = inner end
Public Instance Methods
as_open_api()
click to toggle source
# File lib/dry/doc/namespace.rb, line 13 def as_open_api # TODO: this smells ::Dry::Doc::Schema::Field.new( type: @inner, description: nil ).as_json end
call(*args)
click to toggle source
# File lib/dry/doc/namespace.rb, line 9 def call *args @inner.call *args end
inspect()
click to toggle source
# File lib/dry/doc/namespace.rb, line 29 def inspect "<#{name}>" end
name()
click to toggle source
# File lib/dry/doc/namespace.rb, line 21 def name ref end
to_ast(*args)
click to toggle source
# File lib/dry/doc/namespace.rb, line 25 def to_ast *args @inner.to_ast *args end