Skip to content

Commit

Permalink
Added Class.version
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 21, 2009
1 parent 4761cac commit 96279f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion History.md
@@ -1,5 +1,5 @@

0.0.1 / 2009-09-15
1.0.0 / 2009-09-15
==================

* Initial release
4 changes: 4 additions & 0 deletions lib/oo.js
Expand Up @@ -20,6 +20,10 @@
return Class.extend(props)
}

// --- Version

Class.version = '1.0.0'

/**
* Create a new class.
*
Expand Down
6 changes: 6 additions & 0 deletions spec/spec.core.js
@@ -1,5 +1,11 @@

describe 'Class'
describe '.version'
it 'should be a triple'
Class.version.should.match(/^\d+\.\d+\.\d+$/)
end
end

describe '()'
it 'should create a class'
User = Class()
Expand Down

0 comments on commit 96279f2

Please sign in to comment.