Class: Comet::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/comet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filenameObject (readonly)

Returns the value of attribute filename.



13
14
15
# File 'lib/comet.rb', line 13

def filename
  @filename
end

Instance Method Details

#build_fileObject



15
16
17
# File 'lib/comet.rb', line 15

def build_file
  @build_file ||= find_build_file File.expand_path('.')
end

#makefileObject



19
20
21
# File 'lib/comet.rb', line 19

def makefile
  @makefile ||= create_makefile
end