Sha256: 7d85bfc14d8e5edcfdcd3c8c5ef417d3d1060b9b12cc1f14393059a94e5224b7

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

# Copyright (C) 2007-2008 Annas Al Maleh
# Licensed under the LGPL. See /COPYING.LGPL for more details.

require File.dirname(__FILE__) + "/../command_handler"
require File.dirname(__FILE__) + "/models/r_shell"

class ShellCommandHandler
  include CommandHandler
  
  def can_handle?(parent, command_symbol, *args, &block)
    command_symbol.to_s == "shell"
  end
  
  def do_handle(parent, command_symbol, *args, &block) 
    RShell.send(:new, *args)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glimmer-0.1.0.0 src/command_handlers/shell_command_handler.rb