Skip to content

Commit

Permalink
Fill in missing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lexun committed May 2, 2015
1 parent 8f166c8 commit 2ee5c89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/launchpad/gui/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ module Launchpad
# Main application which is only created once at launch.
class Application < JRubyFX::Application
class << self
# @!attribute main_stage
# @return [Java::JavafxStage::Stage] the main stage.
# @return [Java::JavafxStage::Stage] the main stage.
attr_accessor :main_stage
end

Expand Down
4 changes: 2 additions & 2 deletions lib/launchpad/gui/controllers/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ class MainController
include JRubyFX::Controller
fxml 'main.fxml'

# @return [Launchpad::Patcher]
# @return [Launchpad::Patcher] manages syncing local and remote files
attr_reader :patcher

# @return [Java::JavafxSceneControl::Label]
# @return [Java::JavafxSceneControl::Label] for displaying status to the ui
attr_reader :status

def initialize
Expand Down
4 changes: 3 additions & 1 deletion lib/launchpad/patcher.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
module Launchpad
# Updates installation directory with the required files
# Updates installation directory with the required files.
class Patcher
# @return [Launchpad::Index] used to determine what needs updating.
attr_reader :index

def initialize
@index = Index.new
end

# @return [Boolean] determines whether local and remote files are the same.
def in_sync?
index.diff.empty?
end
Expand Down

0 comments on commit 2ee5c89

Please sign in to comment.