Class: Origen::Generator::Resources

Inherits:
Object
  • Object
show all
Defined in:
lib/origen_testers/origen_ext/generator/resources.rb

Instance Method Summary collapse

Instance Method Details

#create(options = {}, &block) ⇒ Object

Patching to make resources_mode apply much earlier



14
15
16
17
18
# File 'lib/origen_testers/origen_ext/generator/resources.rb', line 14

def create(options = {}, &block)
  OrigenTesters::Interface.with_resources_mode do
    orig_create(options, &block)
  end
end

#orig_createObject



11
# File 'lib/origen_testers/origen_ext/generator/resources.rb', line 11

alias_method :orig_create, :create