module LastHit
  class Configure
    @test_command = "bundle exec rspec"
    @default_base_branch = "development"

    class << self
      attr_accessor :test_command, :default_base_branch

      def config
        yield(self)
      end
    end
  end
end

class LastHit
  def self.config
    yield(Configure) if block_given?
  end

  class Configure
    @test_command = "bundle exec rspec"
    @default_base_branch = "development"

    class << self
      attr_accessor :test_command, :default_base_branch
    end
  end
end

Change the way of config
Change the way of config