Class: GDstruct
- Inherits:
-
Object
- Object
- GDstruct
- Defined in:
- lib/gdstruct.rb,
lib/gdstruct/version.rb
Defined Under Namespace
Classes: Creator
Constant Summary collapse
- VERSION =
'0.9.3'.freeze
Class Method Summary collapse
-
.create(gds_definition, config = {}) ⇒ Hash, Array
(also: c)
create a Ruby Hash/Array structure out of a GDS definition string.
-
.create_from_file(file_name, config = {}) ⇒ Hash, Array
(also: c_from_file)
create a Ruby Hash/Array structure out of a GDS definition file.
Class Method Details
.create(gds_definition, config = {}) ⇒ Hash, Array Also known as: c
create a Ruby Hash/Array structure out of a GDS definition string
29 30 31 |
# File 'lib/gdstruct.rb', line 29 def create( gds_definition, config = {} ) LDLgeneratedLanguage::Gds.parse( gds_definition, config ) end |
.create_from_file(file_name, config = {}) ⇒ Hash, Array Also known as: c_from_file
create a Ruby Hash/Array structure out of a GDS definition file
41 42 43 |
# File 'lib/gdstruct.rb', line 41 def create_from_file( file_name, config = {} ) LDLgeneratedLanguage::Gds.parse( File.read( file_name ), config ) end |