Class: Comet::Generator
- Inherits:
-
Object
- Object
- Comet::Generator
- Defined in:
- lib/comet.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
- #build_file ⇒ Object
-
#initialize(filename) ⇒ Generator
constructor
A new instance of Generator.
- #makefile ⇒ Object
Constructor Details
#initialize(filename) ⇒ Generator
Returns a new instance of Generator.
9 10 11 |
# File 'lib/comet.rb', line 9 def initialize(filename) @filename = filename end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
13 14 15 |
# File 'lib/comet.rb', line 13 def filename @filename end |
Instance Method Details
#build_file ⇒ Object
15 16 17 |
# File 'lib/comet.rb', line 15 def build_file @build_file ||= find_build_file File.('.') end |
#makefile ⇒ Object
19 20 21 |
# File 'lib/comet.rb', line 19 def makefile @makefile ||= create_makefile end |