Class: Buildr::Ipojo::Config
- Inherits:
-
Object
- Object
- Buildr::Ipojo::Config
- Defined in:
- lib/buildr/ipojo/config.rb
Instance Attribute Summary collapse
- #metadata_filename ⇒ Object
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(project) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(project) ⇒ Config
Returns a new instance of Config.
8 9 10 |
# File 'lib/buildr/ipojo/config.rb', line 8 def initialize(project) @project= project end |
Instance Attribute Details
#metadata_filename ⇒ Object
12 13 14 15 16 |
# File 'lib/buildr/ipojo/config.rb', line 12 def return @metadata_filename unless @metadata_filename.nil? filename = project._(:src, :main, :config, "ipojo.xml") File.exist?(filename) ? filename : nil end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
6 7 8 |
# File 'lib/buildr/ipojo/config.rb', line 6 def project @project end |