Method: TTK::Strategies::Proxy#create

Defined in:
lib/ttk/strategies/Proxy.rb

#create(anObject, &block) ⇒ Object



15
16
17
18
19
20
# File 'lib/ttk/strategies/Proxy.rb', line 15

def create ( anObject, &block )
  unless @contents.empty?
    raise ArgumentError, "A proxy can contain only one test"
  end
  super
end