Module: Awestruct::Extensions::RemotePartial

Defined in:
lib/awestruct/extensions/remotePartial.rb

Instance Method Summary collapse

Instance Method Details

#remotePartial(url) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/awestruct/extensions/remotePartial.rb', line 7

def remotePartial(url)

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

end