Sha256: f600dd25eee220d9bf16143afdce8bfb1eecb8fd427cefd0ce18c4e1c61e0532

Contents?: true

Size: 686 Bytes

Versions: 5

Compression:

Stored size: 686 Bytes

Contents

# Author::    Nicolas Despres  <nicolas.despres@gmail.com>.
# Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved.
# License::   LGPL
# $Id: Stub.rb 567 2005-04-13 08:00:06Z polrop $


module TTK

  module Strategies

    class Stub < Strategy
      include Concrete

      protected
      def run_impl 
        @returned_value.each { |k, v| @log[k] = v }
      end

      protected
      def assertion
        pass
      end

      attribute :returned_value, 'attribute which are going to be copied',
                                 :mandatory,
                                 :invisible do {} end

    end # class Stub

  end # module Strategies

end # module TTK



Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ttk-0.1.576 lib/ttk/strategies/Stub.rb
ttk-0.1.580 lib/ttk/strategies/Stub.rb
ttk-0.2.1 lib/ttk/strategies/Stub.rb
ttk-0.1.579 lib/ttk/strategies/Stub.rb
ttk-0.2.0 lib/ttk/strategies/Stub.rb