Class: TdlSimTest::SdlNumTestDefSuger

Inherits:
Object
  • Object
show all
Defined in:
lib/tdl/exlib/sdlmodule_sim.bak.rb

Instance Method Summary collapse

Constructor Details

#initialize(value_default: nil) ⇒ SdlNumTestDefSuger

Returns a new instance of SdlNumTestDefSuger.



299
300
301
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 299

def initialize(value_default: nil)
    @value_default = value_default
end

Instance Method Details

#-(name) ⇒ Object



303
304
305
306
307
308
309
310
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 303

def -(name)
    rel = TdlSimTest::TdlNumTestUnit.new(name: name,value_default: @value_default, sim_target_hash: TdlBaseTestUnit.test_unit_hash)
    TdlBaseTestUnit.top_sim_list << rel 
    TdlSimTest.define_singleton_method(name) do 
        return rel 
    end
    return rel
end