Class: JsonModel::Types::Ref

Inherits:
Dry::Types::Constructor
  • Object
show all
Defined in:
lib/json_model/types/ref.rb

Defined Under Namespace

Modules: Builder

Instance Method Summary collapse

Instance Method Details

#to_astArray

Returns:

  • (Array)


7
8
9
10
11
12
13
14
15
# File 'lib/json_model/types/ref.rb', line 7

def to_ast
  [
    :ref,
    [
      options[:mode],
      type.to_ast,
    ],
  ]
end