Class: Makefile

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

Instance Method Summary collapse

Constructor Details

#initialize(include_makefile) ⇒ Makefile

Returns a new instance of Makefile.



4
5
6
7
# File 'lib/makefile.rb', line 4

def initialize(include_makefile)
  @include_makefile = include_makefile
  @file = write
end

Instance Method Details

#get(variable) ⇒ Object



9
10
11
12
13
# File 'lib/makefile.rb', line 9

def get(variable)
  output = run variable
  _, value = parse output
  value
end