Module: Versionub
- Defined in:
- lib/versionub.rb,
lib/versionub/type.rb
Overview
– Copyleft meh. [meh.paranoid.pk | [email protected]]
This file is part of versionub.
versionub is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
versionub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with versionub. If not, see <www.gnu.org/licenses/>. ++
Defined Under Namespace
Classes: Type
Constant Summary collapse
- Types =
{}
Class Method Summary collapse
- .create(data, type = :standard) ⇒ Object
- .parse(text, type = :standard) ⇒ Object
- .register(type, &block) ⇒ Object
Class Method Details
.create(data, type = :standard) ⇒ Object
29 30 31 |
# File 'lib/versionub.rb', line 29 def self.create (data, type=:standard) Types[type.to_sym].create(data) end |