Class: Vk::Schema::Generator::Types

Inherits:
Common
  • Object
show all
Defined in:
lib/vk/schema/generator/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Common

create_definition, source_root

Instance Attribute Details

#schemaVk::Schema (readonly)

Returns:


10
# File 'lib/vk/schema/generator/types.rb', line 10

argument :schema

Instance Method Details

#create_typesObject


12
13
14
15
16
# File 'lib/vk/schema/generator/types.rb', line 12

def create_types
  schema.types.each do |type|
    Generator::Type.start([type])
  end
end

#create_types_autoloadObject


18
19
20
# File 'lib/vk/schema/generator/types.rb', line 18

def create_types_autoload
  overwrite_template('types.tt', 'lib/vk/api/types.rb')
end