Class: Gem::Packer
- Inherits:
-
Object
- Object
- Gem::Packer
- Defined in:
- lib/rab/gem/packer.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(prj) ⇒ Packer
constructor
A new instance of Packer.
- #pack!(dst) ⇒ Object
Constructor Details
#initialize(prj) ⇒ Packer
Returns a new instance of Packer.
7 8 9 |
# File 'lib/rab/gem/packer.rb', line 7 def initialize(prj) @project = prj end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
5 6 7 |
# File 'lib/rab/gem/packer.rb', line 5 def project @project end |
Instance Method Details
#pack!(dst) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rab/gem/packer.rb', line 11 def pack!(dst) write_readme(dst) write_gemspec(dst) write_gemfile(dst) write_rakefile(dst) write_lib_file(dst) write_version_file(dst) write_js_assets(dst) write_css_assets(dst) write_font_assets(dst) end |