Sha256: 0a3be43c0cecfad44e8b47f812aa8cc37537d498ebd3128eed73ef86cd7f17d4

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 Bytes

Contents

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

module Glimmer
  class DisplayCommandHandler
    include CommandHandler

    def can_handle?(parent, command_symbol, *args, &block)
      command_symbol.to_s == "display"
    end

    def do_handle(parent, command_symbol, *args, &block)
      GDisplay.instance(*args)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
glimmer-0.4.3 lib/glimmer/command_handlers/display_command_handler.rb
glimmer-0.4.2 lib/glimmer/command_handlers/display_command_handler.rb
glimmer-0.4.1 lib/glimmer/command_handlers/display_command_handler.rb
glimmer-0.4.0 lib/glimmer/command_handlers/display_command_handler.rb