Class: Commands::Open
- Inherits:
-
Object
- Object
- Commands::Open
- Defined in:
- lib/commands/open.rb
Class Method Summary collapse
Instance Method Summary collapse
- #go ⇒ Object
-
#initialize(args, settings) ⇒ Open
constructor
A new instance of Open.
- #media? ⇒ Boolean
- #respond ⇒ Object
Constructor Details
#initialize(args, settings) ⇒ Open
Returns a new instance of Open.
3 4 5 |
# File 'lib/commands/open.rb', line 3 def initialize(args, settings) @url = args.join(' ').strip end |
Class Method Details
.matches ⇒ Object
19 20 21 |
# File 'lib/commands/open.rb', line 19 def self.matches ['open'] end |
Instance Method Details
#go ⇒ Object
7 8 9 |
# File 'lib/commands/open.rb', line 7 def go `open '#{@url}'` end |
#media? ⇒ Boolean
15 16 17 |
# File 'lib/commands/open.rb', line 15 def media? false end |
#respond ⇒ Object
11 12 13 |
# File 'lib/commands/open.rb', line 11 def respond "" end |