Sha256: 880c79c4d48d8113e007a870a06b8ab89dda07221a7acf79fc2d955d5d5dd037

Contents?: true

Size: 258 Bytes

Versions: 7

Compression:

Stored size: 258 Bytes

Contents

module ActiveMocker
  # @api private
  class StringReader
    def initialize(file)
      @read = file
    end

    def read(path)
      if @read.is_a?(Hash)
        @read[path.sub('/','').sub('.rb','')]
      else
        @read
      end
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_mocker-1.8.4 lib/active_mocker/string_reader.rb
active_mocker-1.8.3 lib/active_mocker/string_reader.rb
active_mocker-1.8.2 lib/active_mocker/string_reader.rb
active_mocker-1.8.1 lib/active_mocker/string_reader.rb
active_mocker-1.8 lib/active_mocker/string_reader.rb
active_mocker-1.7.3 lib/active_mocker/string_reader.rb
active_mocker-1.7.2 lib/active_mocker/string_reader.rb