Class: Qt::MocFile
- Inherits:
-
Bake::Target
- Object
- Bake::Target
- Qt::MocFile
- Defined in:
- lib/bake/qt_scheme.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#src ⇒ Object
Returns the value of attribute src.
Attributes inherited from Bake::Target
#children, #deps, #name, #parent
Instance Method Summary collapse
-
#initialize(parent, src) ⇒ MocFile
constructor
A new instance of MocFile.
Methods inherited from Bake::Target
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
#output ⇒ Object (readonly)
Returns the value of attribute output.
33 34 35 |
# File 'lib/bake/qt_scheme.rb', line 33 def output @output end |
#src ⇒ Object
Returns the value of attribute src.
34 35 36 |
# File 'lib/bake/qt_scheme.rb', line 34 def src @src end |