Class: Ryb::Project
- Inherits:
-
Object
- Object
- Ryb::Project
- Includes:
- Ryb::Properties::Architectures, Ryb::Properties::Configurations, Ryb::Properties::Defines, Ryb::Properties::Flags, Ryb::Properties::Named, Ryb::Properties::Paths, Ryb::Properties::Targets
- Defined in:
- lib/ryb/project.rb
Instance Method Summary collapse
- #application(*args, &block) ⇒ Object
- #applications ⇒ Object
-
#initialize(name, opts = {}) {|_self| ... } ⇒ Project
constructor
A new instance of Project.
- #libraries ⇒ Object
- #library(*args, &block) ⇒ Object
Methods included from Ryb::Properties::Configurations
Methods included from Ryb::Properties::Targets
Methods included from Ryb::Properties::Architectures
Methods included from Ryb::Properties::Paths
Methods included from Ryb::Properties::Flags
Methods included from Ryb::Properties::Defines
Methods included from Ryb::Properties::Named
Constructor Details
#initialize(name, opts = {}) {|_self| ... } ⇒ Project
Returns a new instance of Project.
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 |
#applications ⇒ Object
29 |
# File 'lib/ryb/project.rb', line 29 def applications; @applications ||= [] end |
#libraries ⇒ Object
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 |