Module: DataModeler
- Defined in:
- lib/data_modeler/helper.rb,
lib/data_modeler/version.rb
Overview
Main gem module
Defined Under Namespace
Modules: Model Classes: Dataset, Framework
Constant Summary collapse
- VERSION =
Version number
"1.0.4"
Class Method Summary collapse
-
.id_from(filename) ⇒ String
Returns a standardized String ID from a (sequentially named) file.
-
.new(config) ⇒ Framework
Returns an instance of the Framework class.
Class Method Details
.id_from(filename) ⇒ String
Note:
convenient method to have available in the config
Returns a standardized String ID from a (sequentially named) file
10 11 12 |
# File 'lib/data_modeler/helper.rb', line 10 def self.id_from filename format "%02d", Integer(filename[/_(\d+).rb$/,1]) end |
.new(config) ⇒ Framework
Returns an instance of the Framework class
17 18 19 |
# File 'lib/data_modeler/helper.rb', line 17 def self.new config DataModeler::Framework.new config end |