Sha256: 1e15579eba4857d4d0e65f7311afe4a5bbf3ef3f67a80faaf08b697d50238f4d

Contents?: true

Size: 214 Bytes

Versions: 20

Compression:

Stored size: 214 Bytes

Contents

require 'open-uri'

module Awestruct
  module Extensions
    module RemotePartial

      def remotePartial(url)

        page = open(url)
        return nil if !page
        page.read

      end

    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
awestruct-0.4.5 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.4 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.3 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x10 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x9 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x8 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x7 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x6 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x5 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x4 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x3 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x2 lib/awestruct/extensions/remotePartial.rb
awestruct-0.4.2.x1 lib/awestruct/extensions/remotePartial.rb
awestructx-0.4.1.x1 lib/awestruct/extensions/remotePartial.rb
awestructx-0.4.1 lib/awestruct/extensions/remotePartial.rb
awestructx-0.4.0 lib/awestruct/extensions/remotePartial.rb
awestruct-0.2.18 lib/awestruct/extensions/remotePartial.rb
awestruct-0.2.17 lib/awestruct/extensions/remotePartial.rb
awestruct-0.2.15 lib/awestruct/extensions/remotePartial.rb