Sha256: 3252a0487b066618f99079aaf2ae00df6f9d7f5780e76b5608af58fed016c802

Contents?: true

Size: 340 Bytes

Versions: 9

Compression:

Stored size: 340 Bytes

Contents

module Arql::Commands
  module Redefine
    class << self
      def redefine
        Arql::App.instance.definitions.each do |_, definition|
          definition.redefine
        end
      end
    end

    Pry.commands.block_command 'redefine' do
      Redefine.redefine
    end

    Pry.commands.alias_command 'redef', 'redefine'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
arql-0.4.11 lib/arql/commands/redefine.rb
arql-0.4.10 lib/arql/commands/redefine.rb
arql-0.4.8 lib/arql/commands/redefine.rb
arql-0.4.7 lib/arql/commands/redefine.rb
arql-0.4.6 lib/arql/commands/redefine.rb
arql-0.4.3 lib/arql/commands/redefine.rb
arql-0.4.2 lib/arql/commands/redefine.rb
arql-0.4.1 lib/arql/commands/redefine.rb
arql-0.4.0 lib/arql/commands/redefine.rb