Module: Space::Shell::ClassMethods

Defined in:
lib/space/shell.rb

Instance Method Summary collapse

Instance Method Details

#commands(commands = nil) ⇒ Object



8
9
10
# File 'lib/space/shell.rb', line 8

def commands(commands = nil)
  commands ? @commands = commands : @commands
end

#watch(*paths) ⇒ Object



12
13
14
# File 'lib/space/shell.rb', line 12

def watch(*paths)
  paths.empty? ? (@paths || []) : (@paths = paths)
end