Class: Xcake::ProjectMetadataGenerator

Inherits:
Generator
  • Object
show all
Defined in:
lib/xcake/generator/project_metadata_generator.rb

Instance Attribute Summary

Attributes inherited from Generator

#context

Instance Method Summary collapse

Methods inherited from Generator

#initialize, plugins_location

Methods included from Visitor

#leave, #visit

Methods included from Plugin

included

Methods included from Dependency

included

Constructor Details

This class inherits a constructor from Xcake::Generator

Instance Method Details

#visit_project(project) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/xcake/generator/project_metadata_generator.rb', line 3

def visit_project(project)
  EventHooks.run_hook :before_creating_xcode_project

  native_project = @context.native_object_for(project)
  native_project.class_prefix = project.class_prefix if project.class_prefix
  native_project.organization = project.organization if project.organization
end