Skip to content

Commit

Permalink
better placed here...
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Jachmann committed Nov 13, 2009
1 parent aa08022 commit e944b23
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/launchpad/interaction.rb
Expand Up @@ -19,6 +19,16 @@ def initialize(opts = nil)
@active = false @active = false
end end


# Closes the interaction's device - nothing can be done with the interaction/device afterwards
def close
@device.close
end

# Determines whether this interaction's device has been closed
def closed?
@device.closed?
end

# Starts interacting with the launchpad, blocking # Starts interacting with the launchpad, blocking
def start def start
@active = true @active = true
Expand All @@ -31,16 +41,6 @@ def start
raise CommunicationError.new(e) raise CommunicationError.new(e)
end end


# Closes the interaction's device - nothing can be done with the interaction/device afterwards
def close
@device.close
end

# Determines whether this interaction's device has been closed
def closed?
@device.closed?
end

# Stops interacting with the launchpad # Stops interacting with the launchpad
def stop def stop
@active = false @active = false
Expand Down

0 comments on commit e944b23

Please sign in to comment.