Class: Qt::MocFile

Inherits:
Bake::Target show all
Defined in:
lib/bake/qt_scheme.rb

Instance Attribute Summary collapse

Attributes inherited from Bake::Target

#children, #deps, #name, #parent

Instance Method Summary collapse

Methods inherited from Bake::Target

#child, #dep, #find, #to_s

Methods included from Bake::Configuration

#[], #default, #get, #has_prop?, #is?, #opt, #req

Constructor Details

#initialize(parent, src) ⇒ MocFile

Returns a new instance of MocFile.



36
37
38
39
40
41
# File 'lib/bake/qt_scheme.rb', line 36

def initialize(parent, src)
    super(parent)
    ext = File.extname(src)
    @output = File.basename(src, ext) + '.moc' + ext
    @src = src
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



33
34
35
# File 'lib/bake/qt_scheme.rb', line 33

def output
  @output
end

#srcObject

Returns the value of attribute src.



34
35
36
# File 'lib/bake/qt_scheme.rb', line 34

def src
  @src
end