Class: Xcake::BuildPhase
- Inherits:
-
Object
- Object
- Xcake::BuildPhase
- Defined in:
- lib/xcake/dsl/build_phase.rb
Overview
This class is used to describe a build phase for a
Xcode project; This forms part of the DSL
and is usually stored in files named Cakefile
.
Direct Known Subclasses
CopyFilesBuildPhase, HeadersBuildPhase, ShellScriptBuildPhase
Instance Method Summary collapse
-
#build_phase_type ⇒ Object
This method is called when generating the build phases subclasses should implement this to allow xcake to know what native build phase type this DSL Object represents.
-
#configure_native_build_phase(_native_build_phase, _context) ⇒ Object
This method is called when generating the build phases subclasses should implement this to handle the configuration of the build phase.
-
#initialize {|_self| ... } ⇒ BuildPhase
constructor
A new instance of BuildPhase.
Constructor Details
#initialize {|_self| ... } ⇒ BuildPhase
Returns a new instance of BuildPhase.
16 17 18 |
# File 'lib/xcake/dsl/build_phase.rb', line 16 def initialize yield(self) if block_given? end |
Instance Method Details
#build_phase_type ⇒ Object
This method is called when generating the build phases subclasses should implement this to allow xcake to know what native build phase type this DSL Object represents
24 25 26 |
# File 'lib/xcake/dsl/build_phase.rb', line 24 def build_phase_type raise 'build_phase_type not implemented' end |
#configure_native_build_phase(_native_build_phase, _context) ⇒ Object
This method is called when generating the build phases subclasses should implement this to handle the configuration of the build phase
32 33 34 |
# File 'lib/xcake/dsl/build_phase.rb', line 32 def configure_native_build_phase(_native_build_phase, _context) raise 'configure_native_build_phase not implemented' end |