Class: Codestrap::Object::Standard::Project
- Defined in:
- lib/codestrap/object/standard/project.rb
Overview
Project metadata derived object
Class Method Summary collapse
- .objects ⇒ Object
-
.weight ⇒ Integer
Object(s) weight.
Class Method Details
.objects ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/codestrap/object/standard/project.rb', line 16 def objects objects = {} if Project.cli project = OpenStruct.new() mod = Project.cli.command mod =~ /^(?:stub|strap)(\S+)$/ project.module = $1 project.name = File.basename(Project.cli.argv[0]) objects['project'] = project end objects end |
.weight ⇒ Integer
Object(s) weight
12 13 14 |
# File 'lib/codestrap/object/standard/project.rb', line 12 def weight 50 end |