Class: Stitch::Package
- Inherits:
-
Object
- Object
- Stitch::Package
- Defined in:
- lib/stitch/package.rb
Constant Summary collapse
- DEFAULTS =
{ :identifier => "require", :paths => [], :files => [], :dependencies => [] }
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(options = {}) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(options = {}) ⇒ Package
Returns a new instance of Package.
12 13 14 15 16 17 18 19 20 |
# File 'lib/stitch/package.rb', line 12 def initialize( = {}) = DEFAULTS.merge() @identifier = [:identifier] @paths = Array([:paths]) @files = Array([:files]) @root = [:root] @dependencies = Array([:dependencies]) end |
Instance Method Details
#compile ⇒ Object
22 23 24 |
# File 'lib/stitch/package.rb', line 22 def compile [compile_dependencies, compile_sources].join("\n") end |