Module: HDLRuby::Low::ForceName
Overview
Module allowing to force a name to a HDLRuby::Low object.
Instance Method Summary collapse
-
#extend_name!(obj) ⇒ Object
Extends the name of object +obj+ with current's one.
-
#force_name! ⇒ Object
Sets a name if there is no name.
Instance Method Details
#extend_name!(obj) ⇒ Object
Extends the name of object +obj+ with current's one.
25 26 27 |
# File 'lib/HDLRuby/hruby_low_without_namespace.rb', line 25 def extend_name!(obj) obj.set_name!((self.name.to_s + "::" + obj.name.to_s).to_sym) end |