Sha256: a171015ff76895aec013fefccd2ef428223f24146423125d9d7945a366461b80

Contents?: true

Size: 351 Bytes

Versions: 38

Compression:

Stored size: 351 Bytes

Contents

module Redcar
  class REPL
    class ReplCommand

      attr_reader :title,:description,:regex

      def initialize(title,regex,description,&block)
        @title = title
        @regex = regex
        @description  = description
        @block = block
      end

      def call(match_data)
        @block.call match_data
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
redcar-0.13 plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.13.5dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.13.4dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.13.3dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.13.2dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.13.1dev plugins/repl/lib/repl/repl_command.rb
redcar-0.12.1 plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.13.0dev plugins/repl/lib/repl/repl_command.rb
redcar-0.12 plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.27dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.26dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.25dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.24dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.23dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.22dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.21dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.20dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.19dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.18dev plugins/repl/lib/repl/repl_command.rb
redcar-dev-0.12.17dev plugins/repl/lib/repl/repl_command.rb