Class: Kumi::IR::DF::ImportLoader
- Inherits:
-
Object
- Object
- Kumi::IR::DF::ImportLoader
- Defined in:
- lib/kumi/ir/df/import_loader.rb
Instance Method Summary collapse
- #function(fn_name) ⇒ Object
-
#initialize(imported_schemas, pipeline: nil) ⇒ ImportLoader
constructor
A new instance of ImportLoader.
Constructor Details
#initialize(imported_schemas, pipeline: nil) ⇒ ImportLoader
Returns a new instance of ImportLoader.
9 10 11 12 13 |
# File 'lib/kumi/ir/df/import_loader.rb', line 9 def initialize(imported_schemas, pipeline: nil) @imported_schemas = (imported_schemas || {}).transform_keys(&:to_sym) @cache = {} @pipeline = pipeline end |
Instance Method Details
#function(fn_name) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/kumi/ir/df/import_loader.rb', line 15 def function(fn_name) graph = graph_for(fn_name.to_sym) return nil unless graph graph.functions[fn_name.to_sym] end |