module HDLRuby::Low::ForceName

Module allowing to force a name to a HDLRuby::Low object.

Public Instance Methods

extend_name!(obj) click to toggle source

Extends the name of object obj with current's one.

# 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
force_name!() click to toggle source

Sets a name if there is no name.

# File lib/HDLRuby/hruby_low_without_namespace.rb, line 20
def force_name!
    @name = HDLRuby.uniq_name if self.name.empty?
end