Class: RubyRTL::CircuitPart

Inherits:
Ast
  • Object
show all
Defined in:
lib/ruby_rtl/ast.rb

Direct Known Subclasses

Combinatorial, Sequential

Instance Attribute Summary collapse

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(label, body) ⇒ CircuitPart

Returns a new instance of CircuitPart.



78
79
80
# File 'lib/ruby_rtl/ast.rb', line 78

def initialize label,body
  @label,@body=label,body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



77
78
79
# File 'lib/ruby_rtl/ast.rb', line 77

def body
  @body
end

#labelObject

Returns the value of attribute label.



77
78
79
# File 'lib/ruby_rtl/ast.rb', line 77

def label
  @label
end