Class: TdlSimTest::SdlSelTestDefSuger

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

Instance Method Summary collapse

Constructor Details

#initialize(sel_range: [], value_default: nil) ⇒ SdlSelTestDefSuger

Returns a new instance of SdlSelTestDefSuger.



282
283
284
285
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 282

def initialize(sel_range: [],value_default: nil)
    @sel_range = sel_range
    @value_default = value_default
end

Instance Method Details

#-(name) ⇒ Object



287
288
289
290
291
292
293
294
295
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 287

def -(name)
    rel = TdlSimTest::TdlSelTestUnit.new(name: name,sel_range: @sel_range, 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