lib/origen/power_domains.rb in origen-0.26.0 vs lib/origen/power_domains.rb in origen-0.27.0

- old
+ new

@@ -1,6 +1,5 @@ -require 'colorize' require_relative './power_domains/power_domain' require_relative './power_domains/power_domains_collection' module Origen module PowerDomains def power_domains(expr = nil) @@ -17,7 +16,8 @@ Origen.log.error("Cannot create power domain '#{id}', it already exists!") fail end power_domains[id] = PowerDomain.new(id, options, &block) end + alias_method :power_domain, :add_power_domain end end