Class: Gollum::RemoteCode
- Inherits:
-
Object
- Object
- Gollum::RemoteCode
- Defined in:
- lib/gollum-lib/remote_code.rb
Instance Method Summary collapse
- #contents ⇒ Object
-
#initialize(path) ⇒ RemoteCode
constructor
A new instance of RemoteCode.
Constructor Details
#initialize(path) ⇒ RemoteCode
Returns a new instance of RemoteCode.
9 10 11 12 |
# File 'lib/gollum-lib/remote_code.rb', line 9 def initialize path raise(ArgumentError, 'path is nil or empty') if path.nil? or path.empty? @uri = URI(path) end |
Instance Method Details
#contents ⇒ Object
14 15 16 |
# File 'lib/gollum-lib/remote_code.rb', line 14 def contents @contents ||= req @uri end |