Sha256: e9a9a9c8d6df0080a43d1456c92d833813216e028df58a88e3cd6ca5559bea71

Contents?: true

Size: 298 Bytes

Versions: 5

Compression:

Stored size: 298 Bytes

Contents

module CrossStub
  module Arguments #:nodoc:
    module Array
      class << self

        def parse(symbols)
          symbols.inject({}) do |memo, name|
            code = "def #{name} ; nil ; end"
            memo.merge(:"#{name}" => code)
          end
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cross-stub-0.2.4 lib/cross-stub/arguments/array.rb
cross-stub-0.2.3 lib/cross-stub/arguments/array.rb
cross-stub-0.2.2 lib/cross-stub/arguments/array.rb
cross-stub-0.2.1 lib/cross-stub/arguments/array.rb
cross-stub-0.2.0 lib/cross-stub/arguments/array.rb