Class: Kumi::Core::IR::Decl
- Inherits:
-
Struct
- Object
- Struct
- Kumi::Core::IR::Decl
- Defined in:
- lib/kumi/core/ir.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ops ⇒ Object
Returns the value of attribute ops.
-
#shape ⇒ Object
Returns the value of attribute shape.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Decl
constructor
A new instance of Decl.
Constructor Details
#initialize(**args) ⇒ Decl
Returns a new instance of Decl.
13 14 15 16 17 |
# File 'lib/kumi/core/ir.rb', line 13 def initialize(**args) super ops&.each(&:freeze) freeze end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
12 13 14 |
# File 'lib/kumi/core/ir.rb', line 12 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
12 13 14 |
# File 'lib/kumi/core/ir.rb', line 12 def name @name end |
#ops ⇒ Object
Returns the value of attribute ops
12 13 14 |
# File 'lib/kumi/core/ir.rb', line 12 def ops @ops end |
#shape ⇒ Object
Returns the value of attribute shape
12 13 14 |
# File 'lib/kumi/core/ir.rb', line 12 def shape @shape end |