Class: Ryb::Project

Instance Method Summary collapse

Methods included from Ryb::Properties::Configurations

included

Methods included from Ryb::Properties::Targets

included

Methods included from Ryb::Properties::Architectures

included

Methods included from Ryb::Properties::Paths

included

Methods included from Ryb::Properties::Flags

included

Methods included from Ryb::Properties::Defines

included

Methods included from Ryb::Properties::Named

included

Constructor Details

#initialize(name, opts = {}) {|_self| ... } ⇒ Project

Returns a new instance of Project.

Yields:

  • (_self)

Yield Parameters:

  • _self (Ryb::Project)

    the object that the method was called on



19
20
21
22
# File 'lib/ryb/project.rb', line 19

def initialize(name, opts={})
  @name = Name.new(name, opts[:pretty])
  yield self if block_given?
end

Instance Method Details

#application(*args, &block) ⇒ Object



30
31
32
# File 'lib/ryb/project.rb', line 30

def application(*args, &block)
  self.applications << Application.new(*args, &block)
end

#applicationsObject



29
# File 'lib/ryb/project.rb', line 29

def applications; @applications ||= [] end

#librariesObject



24
# File 'lib/ryb/project.rb', line 24

def libraries; @libraries ||= [] end

#library(*args, &block) ⇒ Object



25
26
27
# File 'lib/ryb/project.rb', line 25

def library(*args, &block)
  self.libraries << Library.new(*args, &block)
end