Class: Vk::Schema::Generator::Types
- Inherits:
-
Common
- Object
- Thor::Group
- Common
- Vk::Schema::Generator::Types
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
10
|
# File 'lib/vk/schema/generator/types.rb', line 10
argument :schema
|
Instance Method Details
#create_types ⇒ Object
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_autoload ⇒ Object
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
|