Class: Ghit::RepoLocator
- Inherits:
-
Object
- Object
- Ghit::RepoLocator
- Defined in:
- lib/ghit/repo_locator.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(page = nil) ⇒ RepoLocator
constructor
A new instance of RepoLocator.
- #open ⇒ Object
Constructor Details
#initialize(page = nil) ⇒ RepoLocator
Returns a new instance of RepoLocator.
10 11 12 13 |
# File 'lib/ghit/repo_locator.rb', line 10 def initialize(page = nil) @page = page @globals = Ghit::Globals.new end |
Class Method Details
.open(page = nil) ⇒ Object
5 6 7 |
# File 'lib/ghit/repo_locator.rb', line 5 def open page = nil new(page).open end |
Instance Method Details
#open ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/ghit/repo_locator.rb', line 15 def open if RUBY_PLATFORM =~ /darwin/i open_for_osx elsif RUBY_PLATFORM =~ /linux/i open_for_linux end end |