Class: Kumi::Core::NAST::ImportCall
- Defined in:
- lib/kumi/core/nast.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#fn_name ⇒ Object
readonly
Returns the value of attribute fn_name.
-
#input_mapping_keys ⇒ Object
readonly
Returns the value of attribute input_mapping_keys.
-
#source_module ⇒ Object
readonly
Returns the value of attribute source_module.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(fn_name:, args:, input_mapping_keys:, source_module:, **k) ⇒ ImportCall
constructor
A new instance of ImportCall.
Constructor Details
#initialize(fn_name:, args:, input_mapping_keys:, source_module:, **k) ⇒ ImportCall
Returns a new instance of ImportCall.
107 108 109 110 111 112 113 |
# File 'lib/kumi/core/nast.rb', line 107 def initialize(fn_name:, args:, input_mapping_keys:, source_module:, **k) super(**k) @fn_name = fn_name.to_sym @args = args @input_mapping_keys = input_mapping_keys @source_module = source_module end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
105 106 107 |
# File 'lib/kumi/core/nast.rb', line 105 def args @args end |
#fn_name ⇒ Object (readonly)
Returns the value of attribute fn_name.
105 106 107 |
# File 'lib/kumi/core/nast.rb', line 105 def fn_name @fn_name end |
#input_mapping_keys ⇒ Object (readonly)
Returns the value of attribute input_mapping_keys.
105 106 107 |
# File 'lib/kumi/core/nast.rb', line 105 def input_mapping_keys @input_mapping_keys end |
#source_module ⇒ Object (readonly)
Returns the value of attribute source_module.
105 106 107 |
# File 'lib/kumi/core/nast.rb', line 105 def source_module @source_module end |
Instance Method Details
#accept(visitor) ⇒ Object
115 116 117 |
# File 'lib/kumi/core/nast.rb', line 115 def accept(visitor) visitor.respond_to?(:visit_import_call) ? visitor.visit_import_call(self) : super end |